Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/JeffResc/sharkiq
Browse files Browse the repository at this point in the history
  • Loading branch information
funkybunch committed Jul 24, 2022
2 parents 0b85912 + 4152e73 commit bbda45b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sharkiq/sharkiq.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,12 @@ def clean_rooms(self, rooms: List[str]) -> None:
self.set_property_value(Properties.AREAS_TO_CLEAN, payload)
self.set_operating_mode(OperatingModes.START)

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


class SharkPropertiesView(abc.Mapping):
"""Convenience API for shark iq properties"""
Expand Down

0 comments on commit bbda45b

Please sign in to comment.