ha-nest-protect
ha-nest-protect copied to clipboard
HA 2024.1.0: Unknown pynest exception
The problem
Hi There,
After update to HA.2024.1.0 I see a error pop-up
What version of this integration (ha-nest-protect) has the issue?
v0.4.0b4
What version of Home Assistant Core has the issue?
2024.1.0
Device / Model
Topaz-2.7
Diagnostics information
No response
Home Assistant log
2024-01-05 09:56:39.008 ERROR (MainThread) [custom_components.nest_protect] Unknown pynest exception. Please create an issue on GitHub with your logfile. Updates paused for 1 minute.
Traceback (most recent call last):
File "/config/custom_components/nest_protect/pynest/client.py", line 298, in subscribe_for_data
result = await response.json()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 71, in json
return await super().json(*args, loads=loads, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1165, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain', url=URL('https://czfe49-front01-iad01.transport.home.nest.com/v6/subscribe')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/nest_protect/__init__.py", line 168, in _async_subscribe_for_data
result = await entry_data.client.subscribe_for_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nest_protect/pynest/client.py", line 302, in subscribe_for_data
raise PynestException(
custom_components.nest_protect.pynest.exceptions.PynestException: 200 error while subscribing -
Additional information
No response