vacuum/xiaomi_miio: Expose "sensor_dirty_left" attribute (#16003)
This commit is contained in:
parent
c105045dab
commit
8beb349e88
1 changed files with 7 additions and 1 deletions
|
@ -52,6 +52,7 @@ ATTR_DO_NOT_DISTURB_END = 'do_not_disturb_end'
|
||||||
ATTR_MAIN_BRUSH_LEFT = 'main_brush_left'
|
ATTR_MAIN_BRUSH_LEFT = 'main_brush_left'
|
||||||
ATTR_SIDE_BRUSH_LEFT = 'side_brush_left'
|
ATTR_SIDE_BRUSH_LEFT = 'side_brush_left'
|
||||||
ATTR_FILTER_LEFT = 'filter_left'
|
ATTR_FILTER_LEFT = 'filter_left'
|
||||||
|
ATTR_SENSOR_DIRTY_LEFT = 'sensor_dirty_left'
|
||||||
ATTR_CLEANING_COUNT = 'cleaning_count'
|
ATTR_CLEANING_COUNT = 'cleaning_count'
|
||||||
ATTR_CLEANED_TOTAL_AREA = 'total_cleaned_area'
|
ATTR_CLEANED_TOTAL_AREA = 'total_cleaned_area'
|
||||||
ATTR_CLEANING_TOTAL_TIME = 'total_cleaning_time'
|
ATTR_CLEANING_TOTAL_TIME = 'total_cleaning_time'
|
||||||
|
@ -234,7 +235,12 @@ class MiroboVacuum(StateVacuumDevice):
|
||||||
/ 3600),
|
/ 3600),
|
||||||
ATTR_FILTER_LEFT: int(
|
ATTR_FILTER_LEFT: int(
|
||||||
self.consumable_state.filter_left.total_seconds()
|
self.consumable_state.filter_left.total_seconds()
|
||||||
/ 3600)})
|
/ 3600),
|
||||||
|
ATTR_SENSOR_DIRTY_LEFT: int(
|
||||||
|
self.consumable_state.sensor_dirty_left.total_seconds()
|
||||||
|
/ 3600)
|
||||||
|
})
|
||||||
|
|
||||||
if self.vacuum_state.got_error:
|
if self.vacuum_state.got_error:
|
||||||
attrs[ATTR_ERROR] = self.vacuum_state.error
|
attrs[ATTR_ERROR] = self.vacuum_state.error
|
||||||
return attrs
|
return attrs
|
||||||
|
|
Loading…
Add table
Reference in a new issue