Skip to content

Commit

Permalink
🐛 v2.7.6 (#175)
Browse files Browse the repository at this point in the history
- Fixed 🐛 unexpected keyword argument 'silentId' #172
  • Loading branch information
Ludy87 authored Feb 25, 2023
1 parent 3096535 commit 62826ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/xplora_watch/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/Ludy87/xplora_watch/issues",
"requirements": [
"pyxplora_api==2.5.21",
"pyxplora_api==2.5.22",
"geopy==2.2.0",
"dataclasses-json",
"pydub"
],
"version": "v2.7.5"
"version": "v2.7.6"
}
4 changes: 2 additions & 2 deletions custom_components/xplora_watch/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ def _handle_coordinator_update(self) -> None:

async def async_turn_on(self, **kwargs) -> None:
"""Turn the switch on."""
alarms = await self.coordinator.controller.setEnableAlarmTime(alarmId=self._alarm[ATTR_ID])
alarms = await self.coordinator.controller.setEnableAlarmTime(alarm_id=self._alarm[ATTR_ID])
if alarms:
self._attr_is_on = True
await self.coordinator.async_request_refresh()

async def async_turn_off(self, **kwargs) -> None:
"""Turn the switch off."""
alarms = await self.coordinator.controller.setDisableAlarmTime(alarmId=self._alarm[ATTR_ID])
alarms = await self.coordinator.controller.setDisableAlarmTime(alarm_id=self._alarm[ATTR_ID])
if alarms:
self._attr_is_on = False
await self.coordinator.async_request_refresh()
Expand Down

0 comments on commit 62826ce

Please sign in to comment.