parent
8b09c06739
commit
6e50fd95f8
|
|
@ -352,14 +352,7 @@ class RoboVacEntity(StateVacuumEntity):
|
||||||
# self.map_data = self.tuyastatus.get("121")
|
# self.map_data = self.tuyastatus.get("121")
|
||||||
# self.erro_msg? = self.tuyastatus.get("124")
|
# self.erro_msg? = self.tuyastatus.get("124")
|
||||||
if self.robovac_supported & RoboVacEntityFeature.CONSUMABLES:
|
if self.robovac_supported & RoboVacEntityFeature.CONSUMABLES:
|
||||||
_LOGGER.debug("Support Consumables")
|
|
||||||
for CONSUMABLE_CODE in TUYA_CONSUMABLES_CODES:
|
for CONSUMABLE_CODE in TUYA_CONSUMABLES_CODES:
|
||||||
_LOGGER.debug("Consumable code is: {}".format(CONSUMABLE_CODE))
|
|
||||||
_LOGGER.debug(
|
|
||||||
"Consumables value is: {}".format(
|
|
||||||
self.tuyastatus.get(CONSUMABLE_CODE)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
if (
|
if (
|
||||||
CONSUMABLE_CODE in self.tuyastatus
|
CONSUMABLE_CODE in self.tuyastatus
|
||||||
and self.tuyastatus.get(CONSUMABLE_CODE) is not None
|
and self.tuyastatus.get(CONSUMABLE_CODE) is not None
|
||||||
|
|
@ -369,9 +362,6 @@ class RoboVacEntity(StateVacuumEntity):
|
||||||
"ascii"
|
"ascii"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
_LOGGER.debug(
|
|
||||||
"Consumables decoded value is: {}".format(consumables)
|
|
||||||
)
|
|
||||||
if "consumable" in consumables and "duration" in consumables:
|
if "consumable" in consumables and "duration" in consumables:
|
||||||
self._attr_consumables = consumables["consumable"]["duration"]
|
self._attr_consumables = consumables["consumable"]["duration"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue