pynintendoparental 2.2.2__tar.gz → 2.2.3__tar.gz
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-2.2.2 → pynintendoparental-2.2.3}/PKG-INFO +1 -1
- pynintendoparental-2.2.3/pynintendoparental/_version.py +1 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/api.py +13 -3
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental.egg-info/PKG-INFO +1 -1
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/tests/test_api.py +6 -1
- pynintendoparental-2.2.2/pynintendoparental/_version.py +0 -1
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/LICENSE +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/README.md +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/__init__.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/application.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/authenticator.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/const.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/device.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/enum.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/exceptions.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/player.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/py.typed +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental/utils.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental.egg-info/SOURCES.txt +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental.egg-info/dependency_links.txt +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental.egg-info/requires.txt +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental.egg-info/top_level.txt +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pyproject.toml +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/setup.cfg +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/setup.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/tests/test_applications.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/tests/test_device.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/tests/test_enum.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/tests/test_init.py +0 -0
- {pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/tests/test_player.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.3"
|
|
@@ -152,14 +152,16 @@ class Api:
|
|
|
152
152
|
) -> dict:
|
|
153
153
|
"""Update device restriction level."""
|
|
154
154
|
allowed_keys = (
|
|
155
|
-
"vrRestrictionEtag",
|
|
156
155
|
"whitelistedApplicationList",
|
|
157
156
|
"functionalRestrictionLevel",
|
|
158
|
-
"parentalControlSettingEtag",
|
|
159
157
|
)
|
|
160
158
|
settings = {
|
|
161
159
|
"deviceId": device_id,
|
|
162
160
|
"customSettings": parental_control_setting.get("customSettings", {}),
|
|
161
|
+
"parentalControlSettingEtag": parental_control_setting.get("etag"),
|
|
162
|
+
"vrRestrictionEtag": parental_control_setting.get("customSettings", {}).get(
|
|
163
|
+
"vrRestrictionEtag"
|
|
164
|
+
),
|
|
163
165
|
**{key: parental_control_setting.get(key) for key in allowed_keys},
|
|
164
166
|
}
|
|
165
167
|
return await self.send_request(
|
|
@@ -170,9 +172,17 @@ class Api:
|
|
|
170
172
|
self, device_id: str, play_timer_regulations: dict
|
|
171
173
|
) -> dict:
|
|
172
174
|
"""Update device play timer settings."""
|
|
175
|
+
allowed_ptr_keys = (
|
|
176
|
+
"timerMode",
|
|
177
|
+
"restrictionMode",
|
|
178
|
+
"dailyRegulations",
|
|
179
|
+
"eachDayOfTheWeekRegulations",
|
|
180
|
+
)
|
|
173
181
|
settings = {
|
|
174
182
|
"deviceId": device_id,
|
|
175
|
-
"playTimerRegulations":
|
|
183
|
+
"playTimerRegulations": {
|
|
184
|
+
key: play_timer_regulations.get(key) for key in allowed_ptr_keys
|
|
185
|
+
},
|
|
176
186
|
}
|
|
177
187
|
return await self.send_request(endpoint="update_play_timer", body=settings)
|
|
178
188
|
|
|
@@ -199,7 +199,12 @@ async def test_api_methods(mock_authenticator: Authenticator):
|
|
|
199
199
|
endpoint="update_play_timer",
|
|
200
200
|
body={
|
|
201
201
|
"deviceId": "DEVICE_ID",
|
|
202
|
-
"playTimerRegulations": {
|
|
202
|
+
"playTimerRegulations": {
|
|
203
|
+
"timerMode": None,
|
|
204
|
+
"restrictionMode": None,
|
|
205
|
+
"dailyRegulations": None,
|
|
206
|
+
"eachDayOfTheWeekRegulations": None,
|
|
207
|
+
},
|
|
203
208
|
},
|
|
204
209
|
)
|
|
205
210
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental.egg-info/requires.txt
RENAMED
|
File without changes
|
{pynintendoparental-2.2.2 → pynintendoparental-2.2.3}/pynintendoparental.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|