From 13ac6e62e296562e73b4521222ca3a5ee0412eaf Mon Sep 17 00:00:00 2001 From: Thomas Schamm <thomas@tschamm.de> Date: Tue, 8 Mar 2022 12:53:41 +0100 Subject: [PATCH] Remove bosch_shc switch surplus toggle method (#67851) --- homeassistant/components/bosch_shc/switch.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/homeassistant/components/bosch_shc/switch.py b/homeassistant/components/bosch_shc/switch.py index 666eb6554d9..aa49d873f6f 100644 --- a/homeassistant/components/bosch_shc/switch.py +++ b/homeassistant/components/bosch_shc/switch.py @@ -191,10 +191,6 @@ class SHCSwitch(SHCEntity, SwitchEntity): """Turn the switch off.""" setattr(self._device, self.entity_description.on_key, False) - def toggle(self, **kwargs) -> None: - """Toggle the switch.""" - setattr(self._device, self.entity_description.on_key, not self.is_on) - @property def should_poll(self) -> bool: """Switch needs polling.""" @@ -229,7 +225,3 @@ class SHCRoutingSwitch(SHCEntity, SwitchEntity): def turn_off(self, **kwargs) -> None: """Turn the switch off.""" self._device.routing = False - - def toggle(self, **kwargs) -> None: - """Toggle the switch.""" - self._device.routing = not self.is_on -- GitLab