ha-wyzeapi icon indicating copy to clipboard operation
ha-wyzeapi copied to clipboard

[Bug] Unknown error happened during updating device info

Open dinan5 opened this issue 1 year ago • 0 comments

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. nothing - errors just show up in log

Expected behavior

System configuration System: HA Version: WyzeApi Version:

home-assistant.log

Logger: wyzeapy.services.update_manager
Source: /usr/local/lib/python3.12/site-packages/wyzeapy/services/update_manager.py:46
First occurred: 3:22:54 PM (3 occurrences)
Last logged: 3:43:59 PM

Unknown error happened during updating device info
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/wyzeapy/services/update_manager.py", line 42, in update
    self.device = await self.service.update(self.device)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wyzeapy/services/switch_service.py", line 25, in update
    device_info = await self._get_property_list(switch)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wyzeapy/services/base_service.py", line 164, in _get_property_list
    response_json = await self._auth_lib.post("https://api.wyzecam.com/app/v2/device/get_property_list",
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wyzeapy/wyze_auth_lib.py", line 267, in post
    return await response.json()
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1176, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://api.wyzecam.com/app/v2/device/get_property_list')

dinan5 avatar Apr 25 '24 21:04 dinan5