Skip to content

Commit c2b1202

Browse files
committed
Version bump for packaging issue
1 parent 9584faf commit c2b1202

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

sharkiqpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
)
1111
from .sharkiq import OperatingModes, PowerModes, Properties, SharkIqVacuum
1212

13-
__version__ = '0.1.8'
13+
__version__ = '0.1.9'

sharkiqpy/sharkiq.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Shark IQ Wrapper"""
22

3+
import base64
34
import enum
45
import logging
56
import requests
@@ -336,6 +337,20 @@ async def async_get_file_property(self, property_name: PropertyName) -> bytes:
336337
async with session.get(url) as resp:
337338
return await resp.read()
338339

340+
def _encode_room_list(self, rooms: List[str]):
341+
"""Base64 encode the list of rooms to clean"""
342+
if not rooms:
343+
raise ValueError('Room list must not be empty')
344+
if len(rooms) > 3:
345+
raise ValueError('At most three rooms may be given')
346+
# These are a mystery to me, but they seem constant
347+
header = b'\x80\x01\x0b\xca\x02'
348+
footer = b'\x1a\x08155B43C4'
349+
350+
def clean_rooms(self, rooms: List[str]) -> None:
351+
payload = self._encode_room_list(rooms)
352+
raise NotImplementedError
353+
339354

340355
class SharkPropertiesView(abc.Mapping):
341356
"""Convenience API for shark iq properties"""

0 commit comments

Comments
 (0)