Open BrianTomlinson opened 2 months ago
Having the same issue here with 0.4.0b5 but was having the issue with 0.4.0b1.
Logger: custom_components.nest_protect Source: custom_components/nest_protect/init.py:208 integration: Nest Protect (documentation, issues) First occurred: 8:32:36 AM (2 occurrences) Last logged: 8:37:36 AM
Unknown exception. Please create an issue on GitHub with your logfile. Updates paused for 5 minutes. Traceback (most recent call last): File "/config/custom_components/nest_protect/init.py", line 208, in _async_subscribe_for_data dict(b, **buckets.get(b.object_key, {})) for b in [data.updated_buckets] ^^^^^^^^^^^^ AttributeError: 'list' object has no attribute 'object_key'
FULL LOGS:
2024-07-20 06:00:18.928 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 309, in subscribe_for_data result = await response.json() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 79, in json return await super().json(*args, loads=loads, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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/plain', url=URL('https://czfe113-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 169, in _async_subscribe_for_data result = await entry_data.client.subscribe_for_data( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nest_protect/pynest/client.py", line 313, in subscribe_for_data raise PynestException( custom_components.nest_protect.pynest.exceptions.PynestException: 200 error while subscribing -
2024-07-20 07:01:19.997 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 309, in subscribe_for_data result = await response.json() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 79, in json return await super().json(*args, loads=loads, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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/plain', url=URL('https://czfe113-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 169, in _async_subscribe_for_data result = await entry_data.client.subscribe_for_data( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nest_protect/pynest/client.py", line 313, in subscribe_for_data raise PynestException( custom_components.nest_protect.pynest.exceptions.PynestException: 200 error while subscribing - 2024-07-20 08:02:21.042 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 309, in subscribe_for_data result = await response.json() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 79, in json return await super().json(*args, loads=loads, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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/plain', url=URL('https://czfe113-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 169, in _async_subscribe_for_data result = await entry_data.client.subscribe_for_data( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nest_protect/pynest/client.py", line 313, in subscribe_for_data raise PynestException( custom_components.nest_protect.pynest.exceptions.PynestException: 200 error while subscribing - 2024-07-20 08:03:50.124 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'MGLNDD_135.19.95.150_8123\n'
^
2024-07-20 08:32:36.769 ERROR (MainThread) [custom_components.nest_protect] Unknown exception. Please create an issue on GitHub with your logfile. Updates paused for 5 minutes. Traceback (most recent call last): File "/config/custom_components/nest_protect/init.py", line 208, in _async_subscribe_for_data dict(b, buckets.get(b.object_key, {})) for b in [data.updated_buckets] ^^^^^^^^^^^^ AttributeError: 'list' object has no attribute 'object_key' 2024-07-20 08:37:36.995 ERROR (MainThread) [custom_components.nest_protect] Unknown exception. Please create an issue on GitHub with your logfile. Updates paused for 5 minutes. Traceback (most recent call last): File "/config/custom_components/nest_protect/init.py", line 208, in _async_subscribe_for_data dict(b, buckets.get(b.object_key, {})) for b in [data.updated_buckets] ^^^^^^^^^^^^ AttributeError: 'list' object has no attribute 'object_key'
Same
File "/config/custom_components/nest_protect/init.py", line 208, in _async_subscribe_for_data dict(b, **buckets.get(b.object_key, {})) for b in [data.updated_buckets] ^^^^^^^^^^^^ AttributeError: 'list' object has no attribute 'object_key'
I am also getting this same issue with 0.4.0b5
The problem
Errors in the log file
What version of this integration (ha-nest-protect) has the issue?
0.4.0b1
What version of Home Assistant Core has the issue?
2024.7
Device / Model
Nest protect battery and wired
Diagnostics information
No response
Home Assistant log
Logs
``` This error originated from a custom integration. Logger: custom_components.nest_protect Source: custom_components/nest_protect/__init__.py:163 integration: Nest Protect (documentation, issues) First occurred: 9 July 2024 at 23:50:29 (2 occurrences) Last logged: 9 July 2024 at 23:50:29 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 217, in authenticate self.nest_session = NestResponse(**nest_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: NestResponse.__init__() got an unexpected keyword argument 'error_description' 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 163, in _async_subscribe_for_data entry_data.client.nest_session = await entry_data.client.authenticate(auth) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nest_protect/pynest/client.py", line 224, in authenticate raise PynestException( custom_components.nest_protect.pynest.exceptions.PynestException: 400 error while authenticating - {"error":"invalid_request","error_description":"missing user credentials"}. Please create an issue on GitHub. ```Additional information
No response