Skip to content

Commit

Permalink
Update ayla_iot_unofficial.py
Browse files Browse the repository at this point in the history
add 'Water Softener' device name to known softener device types
  • Loading branch information
rewardone committed Jan 4, 2024
1 parent 9ac5174 commit 452aaf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ayla_iot_unofficial/ayla_iot_unofficial.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(
self.ads_url = ADS_BASE
self.rulesservice_url = RULESSERVICE_BASE
self._vacuum_devices = ["Vacuum","SharkIQ"]
self._softener_devices = ["Softener","Smart HE"]
self._softener_devices = ["Softener","Smart HE","Water Softener"]

async def ensure_session(self) -> ClientSession:
"""Ensure that we have an aiohttp ClientSession"""
Expand Down Expand Up @@ -359,4 +359,4 @@ async def async_get_all_notifications(self, device_id) -> Dict[str, str]:
response = await resp.json()["notification"]
if resp.status == 401:
raise AylaAuthError()
return response
return response

0 comments on commit 452aaf7

Please sign in to comment.