File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
custom_components/npm_switches Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,13 @@ def __init__(
5050 async def async_turn_on (self , ** kwargs ): # pylint: disable=unused-argument
5151 """Turn on the switch."""
5252 await self .coordinator .api .enable_proxy (self .proxy_id )
53- await self .async_update_ha_state ()
53+ await self .async_write_ha_state ()
5454 self .proxy = await self .coordinator .api .get_proxy (self .proxy_id )
5555
5656 async def async_turn_off (self , ** kwargs ): # pylint: disable=unused-argument
5757 """Turn off the switch."""
5858 await self .coordinator .api .disable_proxy (self .proxy_id )
59- await self .async_update_ha_state ()
59+ await self .async_write_ha_state ()
6060 self .proxy = await self .coordinator .api .get_proxy (self .proxy_id )
6161
6262 # @property
You can’t perform that action at this time.
0 commit comments