Skip to content

Commit

Permalink
Update light.py
Browse files Browse the repository at this point in the history
Match state
  • Loading branch information
VandeurenGlenn committed Jan 18, 2025
1 parent 09ae388 commit c9eb381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/niko_home_control/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(

def turn_on(self, **kwargs: Any) -> None:
"""Instruct the light to turn on."""
self._action.turn_on(kwargs.get(ATTR_BRIGHTNESS, 255) / 2.55)
self._action.turn_on(round(kwargs.get(ATTR_BRIGHTNESS, 255) / 2.55))

def turn_off(self, **kwargs: Any) -> None:
"""Instruct the light to turn off."""
Expand Down

0 comments on commit c9eb381

Please sign in to comment.