wyzeapy 0.5.22.post1__tar.gz → 0.5.23__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.
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/PKG-INFO +1 -1
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/pyproject.toml +1 -1
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/utils.py +3 -6
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/LICENSES/GPL-3.0-only.txt +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/__init__.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/const.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/crypto.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/exceptions.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/payload_factory.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/__init__.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/base_service.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/bulb_service.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/camera_service.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/hms_service.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/lock_service.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/sensor_service.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/switch_service.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/thermostat_service.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/update_manager.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/services/wall_switch_service.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/types.py +0 -0
- {wyzeapy-0.5.22.post1 → wyzeapy-0.5.23}/src/wyzeapy/wyze_auth_lib.py +0 -0
|
@@ -105,12 +105,9 @@ def check_for_errors_iot(service, response_json: Dict[Any, Any]) -> None:
|
|
|
105
105
|
raise UnknownApiError(response_json)
|
|
106
106
|
|
|
107
107
|
def check_for_errors_hms(service, response_json: Dict[Any, Any]) -> None:
|
|
108
|
-
if response_json['
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
raise AccessTokenError("Access Token expired, attempting to refresh")
|
|
112
|
-
else:
|
|
113
|
-
raise UnknownApiError(response_json)
|
|
108
|
+
if response_json['message'] is None:
|
|
109
|
+
service._auth_lib.token.expired = True
|
|
110
|
+
raise AccessTokenError("Access Token expired, attempting to refresh")
|
|
114
111
|
|
|
115
112
|
|
|
116
113
|
def return_event_for_device(device: Device, events: List[Event]) -> Optional[Event]:
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|