mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Refresh coordinator after map sleep for Roborock (#141093)
Refresh coordinator after the map sleep
This commit is contained in:
parent
b2942d61b3
commit
fc0dbcd600
@ -149,8 +149,9 @@ class RoborockCurrentMapSelectEntity(RoborockCoordinatedEntityV1, SelectEntity):
|
|||||||
"""Set the option."""
|
"""Set the option."""
|
||||||
for map_id, map_ in self.coordinator.maps.items():
|
for map_id, map_ in self.coordinator.maps.items():
|
||||||
if map_.name == option:
|
if map_.name == option:
|
||||||
await self.send(
|
await self._send_command(
|
||||||
RoborockCommand.LOAD_MULTI_MAP,
|
RoborockCommand.LOAD_MULTI_MAP,
|
||||||
|
self.api,
|
||||||
[map_id],
|
[map_id],
|
||||||
)
|
)
|
||||||
# Update the current map id manually so that nothing gets broken
|
# Update the current map id manually so that nothing gets broken
|
||||||
@ -159,6 +160,7 @@ class RoborockCurrentMapSelectEntity(RoborockCoordinatedEntityV1, SelectEntity):
|
|||||||
# We need to wait after updating the map
|
# We need to wait after updating the map
|
||||||
# so that other commands will be executed correctly.
|
# so that other commands will be executed correctly.
|
||||||
await asyncio.sleep(MAP_SLEEP)
|
await asyncio.sleep(MAP_SLEEP)
|
||||||
|
await self.coordinator.async_refresh()
|
||||||
break
|
break
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user