mirror of
https://github.com/home-assistant/core.git
synced 2025-06-01 11:47:04 +00:00
Make Roborock listener update thread safe (#116184)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
7cabb04bc9
commit
8ac6593b53
@ -137,4 +137,4 @@ class RoborockCoordinatedEntity(
|
|||||||
else:
|
else:
|
||||||
self.coordinator.roborock_device_info.props.consumable = value
|
self.coordinator.roborock_device_info.props.consumable = value
|
||||||
self.coordinator.data = self.coordinator.roborock_device_info.props
|
self.coordinator.data = self.coordinator.roborock_device_info.props
|
||||||
self.async_write_ha_state()
|
self.schedule_update_ha_state()
|
||||||
|
@ -89,6 +89,7 @@ async def test_listener_update(
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
await hass.async_block_till_done()
|
||||||
assert hass.states.get("sensor.roborock_s7_maxv_filter_time_left").state == str(
|
assert hass.states.get("sensor.roborock_s7_maxv_filter_time_left").state == str(
|
||||||
FILTER_REPLACE_TIME - 743
|
FILTER_REPLACE_TIME - 743
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user