Skip to content

Commit bbda45b

Browse files
committed
Merge branch 'main' of https://github.com/JeffResc/sharkiq
2 parents 0b85912 + 4152e73 commit bbda45b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sharkiq/sharkiq.py

+6
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,12 @@ def clean_rooms(self, rooms: List[str]) -> None:
405405
self.set_property_value(Properties.AREAS_TO_CLEAN, payload)
406406
self.set_operating_mode(OperatingModes.START)
407407

408+
async def async_clean_rooms(self, rooms: List[str]) -> None:
409+
payload = self._encode_room_list(rooms)
410+
_LOGGER.debug("Room list payload: " + payload)
411+
await self.async_set_property_value(Properties.AREAS_TO_CLEAN, payload)
412+
await self.async_set_operating_mode(OperatingModes.START)
413+
408414

409415
class SharkPropertiesView(abc.Mapping):
410416
"""Convenience API for shark iq properties"""

0 commit comments

Comments
 (0)