Skip to content

Commit

Permalink
Fix Netgear switch state update (#69597)
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG authored and balloob committed Apr 11, 2022
1 parent 509d6ff commit 5a408d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/netgear/switch.py
Expand Up @@ -90,10 +90,12 @@ def is_on(self):
async def async_turn_on(self, **kwargs):
"""Turn the switch on."""
await self._router.async_allow_block_device(self._mac, ALLOW)
await self.coordinator.async_request_refresh()

async def async_turn_off(self, **kwargs):
"""Turn the switch off."""
await self._router.async_allow_block_device(self._mac, BLOCK)
await self.coordinator.async_request_refresh()

@callback
def async_update_device(self) -> None:
Expand Down

0 comments on commit 5a408d4

Please sign in to comment.