mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00: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:
parent
5dc48df093
commit
1ae3bb6af5
@ -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,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user