SecKatie / ha-wyzeapi

Home Assistant Integration for Wyze devices.
722 stars 112 forks source link

[Bug] Unknown error happened during updating device info #574

Closed dinan5 closed 1 month ago

dinan5 commented 2 months ago

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')
github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 5 days with no activity.