mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Remove bosch_shc switch surplus toggle method (#67851)
This commit is contained in:
parent
d12118a425
commit
13ac6e62e2
@ -191,10 +191,6 @@ class SHCSwitch(SHCEntity, SwitchEntity):
|
|||||||
"""Turn the switch off."""
|
"""Turn the switch off."""
|
||||||
setattr(self._device, self.entity_description.on_key, False)
|
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
|
@property
|
||||||
def should_poll(self) -> bool:
|
def should_poll(self) -> bool:
|
||||||
"""Switch needs polling."""
|
"""Switch needs polling."""
|
||||||
@ -229,7 +225,3 @@ class SHCRoutingSwitch(SHCEntity, SwitchEntity):
|
|||||||
def turn_off(self, **kwargs) -> None:
|
def turn_off(self, **kwargs) -> None:
|
||||||
"""Turn the switch off."""
|
"""Turn the switch off."""
|
||||||
self._device.routing = False
|
self._device.routing = False
|
||||||
|
|
||||||
def toggle(self, **kwargs) -> None:
|
|
||||||
"""Toggle the switch."""
|
|
||||||
self._device.routing = not self.is_on
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user