Skip to content

Commit 4ca1484

Browse files
fix: remove await
1 parent 6afee11 commit 4ca1484

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/npm_switches/switch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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_write_ha_state()
53+
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_write_ha_state()
59+
self.async_write_ha_state()
6060
self.proxy = await self.coordinator.api.get_proxy(self.proxy_id)
6161

6262
# @property

0 commit comments

Comments
 (0)