mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Fix DPCode in battery support check for vacuum Tuya (#64806)
This commit is contained in:
parent
a2f3c843f9
commit
d33e2609b9
@ -115,7 +115,7 @@ class TuyaVacuumEntity(TuyaEntity, StateVacuumEntity):
|
||||
self._supported_features |= SUPPORT_FAN_SPEED
|
||||
self._fan_speed = enum_type
|
||||
|
||||
if int_type := self.find_dpcode(DPCode.SUCTION, dptype=DPType.INTEGER):
|
||||
if int_type := self.find_dpcode(DPCode.ELECTRICITY_LEFT, dptype=DPType.INTEGER):
|
||||
self._supported_features |= SUPPORT_BATTERY
|
||||
self._battery_level = int_type
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user