Skip to content

Commit

Permalink
chore(light): fix light value error
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwentao committed Jan 9, 2025
1 parent 704457e commit 7e8715a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def turn_on(self, **kwargs: Any) -> None: # noqa: ANN401
if key == ATTR_COLOR_TEMP_KELVIN:
self._device.set_attribute(
attr=X13Attributes.color_temperature,
value=round(1000000 / value),
value=value,
)
if key == ATTR_EFFECT:
self._device.set_attribute(attr=X13Attributes.effect, value=value)
Expand Down

0 comments on commit 7e8715a

Please sign in to comment.