Skip to content

Commit

Permalink
fix: temp missing (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdnninja authored Sep 6, 2024
1 parent f090dc7 commit b9af759
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions yoto_api/YotoAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ def update_players(self, token: Token, players: list[YotoPlayer]) -> None:
players[deviceId].system_volume = get_child_value(
player_status_response, "systemVolumePercentage"
)
if isinstance(
get_child_value(player_status_response, "temperatureCelcius"), int
):
if get_child_value(player_status_response, "temperatureCelcius").isdigit:
if (
int(get_child_value(player_status_response, "temperatureCelcius"))
!= 0
Expand Down

0 comments on commit b9af759

Please sign in to comment.