mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Fix Netgear switch state update (#69597)
This commit is contained in:
parent
ad29d89484
commit
f579c6d982
@ -90,10 +90,12 @@ class NetgearAllowBlock(NetgearDeviceEntity, SwitchEntity):
|
|||||||
async def async_turn_on(self, **kwargs):
|
async def async_turn_on(self, **kwargs):
|
||||||
"""Turn the switch on."""
|
"""Turn the switch on."""
|
||||||
await self._router.async_allow_block_device(self._mac, ALLOW)
|
await self._router.async_allow_block_device(self._mac, ALLOW)
|
||||||
|
await self.coordinator.async_request_refresh()
|
||||||
|
|
||||||
async def async_turn_off(self, **kwargs):
|
async def async_turn_off(self, **kwargs):
|
||||||
"""Turn the switch off."""
|
"""Turn the switch off."""
|
||||||
await self._router.async_allow_block_device(self._mac, BLOCK)
|
await self._router.async_allow_block_device(self._mac, BLOCK)
|
||||||
|
await self.coordinator.async_request_refresh()
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def async_update_device(self) -> None:
|
def async_update_device(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user