Remove bosch_shc switch surplus toggle method (#67851)

This commit is contained in:
Thomas Schamm 2022-03-08 12:53:41 +01:00 committed by GitHub
parent d12118a425
commit 13ac6e62e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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