There was an error while loading. Please reload this page.
1 parent 6afee11 commit 4ca1484Copy full SHA for 4ca1484
custom_components/npm_switches/switch.py
@@ -50,13 +50,13 @@ def __init__(
50
async def async_turn_on(self, **kwargs): # pylint: disable=unused-argument
51
"""Turn on the switch."""
52
await self.coordinator.api.enable_proxy(self.proxy_id)
53
- await self.async_write_ha_state()
+ self.async_write_ha_state()
54
self.proxy = await self.coordinator.api.get_proxy(self.proxy_id)
55
56
async def async_turn_off(self, **kwargs): # pylint: disable=unused-argument
57
"""Turn off the switch."""
58
await self.coordinator.api.disable_proxy(self.proxy_id)
59
60
61
62
# @property
0 commit comments