Skip to content

Commit

Permalink
Fix error when setting sleep time to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ldotlopez authored and ollo69 committed Aug 26, 2023
1 parent 5642ca2 commit 53a7be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/smartthinq_sensors/wideq/devices/ac.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ async def get_filter_state_v2(self):
async def set_reservation_sleep_time(self, value: int):
"""Set the device sleep time reservation in minutes."""
keys = self._get_cmd_keys(CMD_RESERVATION_SLEEP_TIME)
await self.set(keys[0], keys[1], key=keys[2], value=value)
await self.set(keys[0], keys[1], key=keys[2], value=str(value))

@property
def is_reservation_sleep_time_available(self):
Expand Down

0 comments on commit 53a7be3

Please sign in to comment.