mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Make Roborock listener update thread safe (#116184)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
316f58404d
commit
cc79129587
@ -137,4 +137,4 @@ class RoborockCoordinatedEntity(
|
||||
else:
|
||||
self.coordinator.roborock_device_info.props.consumable = value
|
||||
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(
|
||||
FILTER_REPLACE_TIME - 743
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user