Skip to content

Commit

Permalink
Merge pull request #24 from jmwaldrip/main
Browse files Browse the repository at this point in the history
Fixing Timer Value Type Bug
  • Loading branch information
kbickar committed Jan 19, 2024
2 parents 2742267 + 77e3be2 commit bfa998e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion asyncsleepiq/fuzion/core_climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ async def update(self, data: dict[str, Any]) -> None:
data = data.split()
self.temperature = CoreTemps[data[0].upper()]
self.is_on = self.temperature > 0
self.timer = data[1] if self.is_on else 0
self.timer = int(data[1]) if self.is_on else 0

2 changes: 1 addition & 1 deletion asyncsleepiq/fuzion/foot_warmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ async def update(self, data: dict[str, Any]) -> None:
data = data.split()
self.temperature = FootWarmingTemps[data[0].upper()]
self.is_on = self.temperature > 0
self.timer = data[1] if self.is_on else 0
self.timer = int(data[1]) if self.is_on else 0

0 comments on commit bfa998e

Please sign in to comment.