How do i link brightness and brightness_pct

how do i link brightness and brightness_pct.
I have a dimmer that controls ceiling lights and a milight LED strip on our mirror that I would like sync the brightness.

i have tried the following without luck

service: light.turn_on
data:
  brightness_pct: "{{ trigger.to_state.attributes.brightness }}"
target:
  entity_id: light.spejl_milight

The problem is that brightness isn’t brightness_pct

service: light.turn_on
data:
  brightness: "{{ trigger.to_state.attributes.brightness }}"
target:
  entity_id: light.spejl_milight

would work as you expect

See the light docs

Perfect thanks, I didn’t realize I could just remove the _pct.