mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Revert "Remove unsupported services from tuya vacuum" (#95845)
Revert "Remove unsupported services from tuya vacuum (#95790)" This reverts commit 5712d12c42e417c6265fa66d45941a0d0751e06c.
This commit is contained in:
parent
52d57efcbf
commit
6964a2112a
@ -150,6 +150,14 @@ class TuyaVacuumEntity(TuyaEntity, StateVacuumEntity):
|
||||
return None
|
||||
return TUYA_STATUS_TO_HA.get(status)
|
||||
|
||||
def turn_on(self, **kwargs: Any) -> None:
|
||||
"""Turn the device on."""
|
||||
self._send_command([{"code": DPCode.POWER, "value": True}])
|
||||
|
||||
def turn_off(self, **kwargs: Any) -> None:
|
||||
"""Turn the device off."""
|
||||
self._send_command([{"code": DPCode.POWER, "value": False}])
|
||||
|
||||
def start(self, **kwargs: Any) -> None:
|
||||
"""Start the device."""
|
||||
self._send_command([{"code": DPCode.POWER_GO, "value": True}])
|
||||
|
Loading…
x
Reference in New Issue
Block a user