pynintendoparental 1.1.0__py3-none-any.whl → 1.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pynintendoparental/_version.py +1 -1
- pynintendoparental/device.py +3 -3
- {pynintendoparental-1.1.0.dist-info → pynintendoparental-1.1.1.dist-info}/METADATA +1 -1
- {pynintendoparental-1.1.0.dist-info → pynintendoparental-1.1.1.dist-info}/RECORD +7 -7
- {pynintendoparental-1.1.0.dist-info → pynintendoparental-1.1.1.dist-info}/WHEEL +0 -0
- {pynintendoparental-1.1.0.dist-info → pynintendoparental-1.1.1.dist-info}/licenses/LICENSE +0 -0
- {pynintendoparental-1.1.0.dist-info → pynintendoparental-1.1.1.dist-info}/top_level.txt +0 -0
pynintendoparental/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.1.
|
|
1
|
+
__version__ = "1.1.1"
|
pynintendoparental/device.py
CHANGED
|
@@ -230,7 +230,7 @@ class Device:
|
|
|
230
230
|
current_day["bedtime"]["endingTime"]["hour"],
|
|
231
231
|
minute=current_day["bedtime"]["endingTime"]["minute"])
|
|
232
232
|
else:
|
|
233
|
-
self.bedtime_alarm =
|
|
233
|
+
self.bedtime_alarm = time(hour=0, minute=0)
|
|
234
234
|
else:
|
|
235
235
|
bedtime_alarm = self.parental_control_settings["playTimerRegulations"]["dailyRegulations"]["bedtime"]
|
|
236
236
|
if bedtime_alarm["enabled"]:
|
|
@@ -238,7 +238,7 @@ class Device:
|
|
|
238
238
|
bedtime_alarm["endingTime"]["hour"],
|
|
239
239
|
minute=bedtime_alarm["endingTime"]["minute"])
|
|
240
240
|
else:
|
|
241
|
-
self.bedtime_alarm =
|
|
241
|
+
self.bedtime_alarm = time(hour=0, minute=0)
|
|
242
242
|
return True
|
|
243
243
|
|
|
244
244
|
def _parse_parental_control_setting(self, pcs: dict):
|
|
@@ -291,7 +291,7 @@ class Device:
|
|
|
291
291
|
effective_remaining_time = time_remaining_by_play_limit
|
|
292
292
|
|
|
293
293
|
# 2. Factor in bedtime alarm, if any, to further constrain remaining time
|
|
294
|
-
if self.bedtime_alarm
|
|
294
|
+
if self.bedtime_alarm not in (None, time(hour=0, minute=0)):
|
|
295
295
|
bedtime_dt = datetime.combine(now.date(), self.bedtime_alarm)
|
|
296
296
|
time_remaining_by_bedtime = 0.0
|
|
297
297
|
if bedtime_dt > now: # Bedtime is in the future today
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
pynintendoparental/__init__.py,sha256=pNcBsHRa4B85USP7uzwPEGF9fu3MA9YgW_hI82F_NXQ,2460
|
|
2
|
-
pynintendoparental/_version.py,sha256=
|
|
2
|
+
pynintendoparental/_version.py,sha256=q8_5C0f-8mHWNb6mMw02zlYPnEGXBqvOmP3z0CEwZKM,22
|
|
3
3
|
pynintendoparental/api.py,sha256=hMXq0eNIgFELlNZJtN0rK3plKyu9nirvwiUPNlkjOCY,7013
|
|
4
4
|
pynintendoparental/application.py,sha256=l-oVwM4hrVVUf_2djQ7rJVya7LQP38yhaLPAWt8V8TY,3941
|
|
5
5
|
pynintendoparental/const.py,sha256=sQZqU0f1NSClMPfCSJonlCunLdbPPiXjL-JS2LMZGd4,2101
|
|
6
|
-
pynintendoparental/device.py,sha256=
|
|
6
|
+
pynintendoparental/device.py,sha256=5yfdOgLjoYM9cxBfUf1v9_NZBzwn2v4n8ik5Czu9pmc,22458
|
|
7
7
|
pynintendoparental/enum.py,sha256=lzacGti7fcQqAOROjB9782De7bOMYKSEM61SQd6aYG4,401
|
|
8
8
|
pynintendoparental/exceptions.py,sha256=DGguLw1QwjRtKKglnd_ZD9ekUyGeXHN_beVeVvGBKwM,1092
|
|
9
9
|
pynintendoparental/player.py,sha256=WDl0pspHgrV9lGhDp-NKlfP8DV4Yxe02aYaGg9wTTeg,1785
|
|
@@ -11,8 +11,8 @@ pynintendoparental/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
11
11
|
pynintendoparental/utils.py,sha256=5-EP_rmPnSSWtbi18Y226GtjLhF3PLONKwmRdiy7m2c,198
|
|
12
12
|
pynintendoparental/authenticator/__init__.py,sha256=MZdA6qqHV0i7rspNL9Z9xl7aRy-EJEm3NIapiIgEJBA,7688
|
|
13
13
|
pynintendoparental/authenticator/const.py,sha256=_nUJVC0U64j_n1LaQd_KDg0EWFcezb87bQyYYXpbPPY,917
|
|
14
|
-
pynintendoparental-1.1.
|
|
15
|
-
pynintendoparental-1.1.
|
|
16
|
-
pynintendoparental-1.1.
|
|
17
|
-
pynintendoparental-1.1.
|
|
18
|
-
pynintendoparental-1.1.
|
|
14
|
+
pynintendoparental-1.1.1.dist-info/licenses/LICENSE,sha256=zsxHgHVMnyWq121yND8zBl9Rl9H6EF2K9N51B2ZSm_k,1071
|
|
15
|
+
pynintendoparental-1.1.1.dist-info/METADATA,sha256=sdkHFhEyZTvYT_Cu9ipFIZwMl3tMmk4nw19BSkgmEqI,1871
|
|
16
|
+
pynintendoparental-1.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
pynintendoparental-1.1.1.dist-info/top_level.txt,sha256=QQ5bAl-Ljso16P8KLf1NHrFmKk9jLT7bVJG_rVlIXWk,19
|
|
18
|
+
pynintendoparental-1.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|