Skip to content

Commit

Permalink
Update coordinator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cdnninja committed May 27, 2024
1 parent b42818c commit ec21476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/yoto/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ async def async_set_time(self, player_id: str, key: str, value: time) -> None:
await self.async_check_and_refresh_token()
config = YotoPlayerConfig()
if key == "day_mode_time":
config.day_mode_time = str(value)
config.day_mode_time = value
if key == "night_mode_time":
config.night_mode_time = str(value)
config.night_mode_time = value
await self.hass.async_add_executor_job(
self.yoto_manager.set_player_config, player_id, config
)
Expand Down

0 comments on commit ec21476

Please sign in to comment.