From 8a5f53bfee2241c41b69873970559cd42b3c0e67 Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 25 Jul 2022 22:20:32 +1000 Subject: [PATCH] Incorrect state change --- custom_components/apex/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/apex/switch.py b/custom_components/apex/switch.py index d8db9c3..72341c9 100644 --- a/custom_components/apex/switch.py +++ b/custom_components/apex/switch.py @@ -51,7 +51,7 @@ async def async_turn_on(self, **kwargs): "ON" ) if update == True: - self._state = False + self._state = True self.async_write_ha_state()