Skip to content

Commit

Permalink
fix driscol fans
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeath authored Apr 17, 2023
1 parent 199070b commit 1b9cfee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/hubspace/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ def turn_on(self, **kwargs: Any) -> None:
# Homeassistant uses 0-255
brightness = kwargs.get(ATTR_BRIGHTNESS, self._brightness)
brightnessPercent = _brightness_to_hubspace(brightness)
if self._model not "DriskolFan":
if self._model != "DriskolFan":
if brightnessPercent < 30:
speed = "025"
elif brightnessPercent < 60:
Expand Down Expand Up @@ -830,7 +830,7 @@ def extra_state_attributes(self):
def turn_off(self, **kwargs: Any) -> None:
"""Instruct the light to turn off."""
self._hs.setStateInstance(self._childId, "power", "fan-power", "off")
if self._model not "DriskolFan":
if self._model != "DriskolFan":
self._hs.setStateInstance(
self._childId, "fan-speed", "fan-speed", "fan-speed-000"
)
Expand Down

0 comments on commit 1b9cfee

Please sign in to comment.