Skip to content

Commit ca15416

Browse files
author
david
committed
fix: dont manually flick the switch for heating, the data may be flawd
1 parent 884b961 commit ca15416

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/artsauna_ble/switch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ async def async_turn_on(self, **kwargs: Any) -> None:
176176
_LOGGER.error("Wrong KEY for switch: %s", self._key)
177177
return
178178
# manually switch the value for fluid ui
179-
self._attr_is_on = not self._attr_is_on
179+
if self._key != "heating": # heating data is flawd
180+
self._attr_is_on = not self._attr_is_on
180181

181182
async def async_turn_off(self, **kwargs: Any) -> None:
182183
await self.async_turn_on()

0 commit comments

Comments
 (0)