From f66bd14ed13aaa0eece4cd37412d02fcbd00177d Mon Sep 17 00:00:00 2001 From: Vadym Melnychuk Date: Thu, 22 Aug 2024 18:32:04 +0300 Subject: [PATCH] remove old stuff --- custom_components/hon/switch.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index f6290f8..209d069 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -510,7 +510,6 @@ class HonControlSwitchEntity(HonEntity, SwitchEntity): async def async_turn_on(self, **kwargs: Any) -> None: desc = self.entity_description self._device.sync_command(desc.turn_on_key, "settings", desc.to_sync) - //await self.coordinator.async_refresh() self.coordinator.async_set_updated_data({}) command = self._device.commands[desc.turn_on_key] await command.send(desc.only_mandatory_parameters) @@ -520,7 +519,6 @@ class HonControlSwitchEntity(HonEntity, SwitchEntity): async def async_turn_off(self, **kwargs: Any) -> None: desc = self.entity_description self._device.sync_command(desc.turn_off_key, "settings", desc.to_sync) - //await self.coordinator.async_refresh() self.coordinator.async_set_updated_data({}) command = self._device.commands[desc.turn_off_key] await command.send(desc.only_mandatory_parameters)