Skip to content

Commit

Permalink
0.0.3
Browse files Browse the repository at this point in the history
fix screentime not updating correctly
  • Loading branch information
pantherale0 committed Sep 6, 2023
1 parent 80272eb commit 3b329c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/nintendo_parental/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"documentation": "https://github.com/pantherale0/ha-nintendoparentalcontrols",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/pantherale0/ha-nintendoparentalcontrols/issues",
"version": "0.0.2",
"version": "0.0.3",
"requirements": [
"pynintendoparental==0.0.2"
"pynintendoparental==0.0.3"
]
}
2 changes: 1 addition & 1 deletion custom_components/nintendo_parental/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
@property
def native_value(self) -> float:
"""Return the native value of the sensor."""
return self._device.get_date_summary()[0].get("playingTime")/60
return self._device.today_playing_time/60

@property
def native_unit_of_measurement(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ colorlog==6.7.0
homeassistant==2023.2.0
pip>=21.0,<23.3
ruff==0.0.287
pynintendoparental==0.0.2
pynintendoparental==0.0.3

0 comments on commit 3b329c2

Please sign in to comment.