mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Add xiamoi_miio the water_box / mop status (#43355)
* Adding the water_box / mop status * Clean up Co-authored-by: Teemu R. <tpr@iki.fi> Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Teemu R. <tpr@iki.fi>
This commit is contained in:
@@ -75,6 +75,7 @@ ATTR_STATUS = "status"
|
|||||||
ATTR_ZONE_ARRAY = "zone"
|
ATTR_ZONE_ARRAY = "zone"
|
||||||
ATTR_ZONE_REPEATER = "repeats"
|
ATTR_ZONE_REPEATER = "repeats"
|
||||||
ATTR_TIMERS = "timers"
|
ATTR_TIMERS = "timers"
|
||||||
|
ATTR_MOP_ATTACHED = "mop_attached"
|
||||||
|
|
||||||
SUPPORT_XIAOMI = (
|
SUPPORT_XIAOMI = (
|
||||||
SUPPORT_STATE
|
SUPPORT_STATE
|
||||||
@@ -326,6 +327,7 @@ class MiroboVacuum(StateVacuumEntity):
|
|||||||
self.consumable_state.sensor_dirty_left.total_seconds() / 3600
|
self.consumable_state.sensor_dirty_left.total_seconds() / 3600
|
||||||
),
|
),
|
||||||
ATTR_STATUS: str(self.vacuum_state.state),
|
ATTR_STATUS: str(self.vacuum_state.state),
|
||||||
|
ATTR_MOP_ATTACHED: self.vacuum_state.is_water_box_attached,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user