mirror of
https://github.com/home-assistant/core.git
synced 2026-04-20 16:39:02 +02:00
Fix Netgear switch state update (#69597)
This commit is contained in:
committed by
Paulus Schoutsen
parent
509d6ffcb2
commit
5a408d4083
@@ -90,10 +90,12 @@ class NetgearAllowBlock(NetgearDeviceEntity, SwitchEntity):
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user