Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log Error: AttributeError: 'list' object has no attribute 'object_key' #377

Closed
tggman opened this issue Dec 2, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@tggman
Copy link

tggman commented Dec 2, 2024

The problem

I just updated from b4 to b7 and started receiving the error in the logs 10 minutes after triggering the first occupancy.

Observations:

  • The occupancy status failed to clear after the first 10m but did eventually clear after an addition 10min (20min total).
  • The error continues to be logged each time the occupancy status changes
  • The error delays occupancy status changes
  • Same issue occurs with the b5 version
  • Issue goes away and the occupancy status is once again responsive after reverting back to the b4 version

What version of this integration (ha-nest-protect) has the issue?

0.4.0b7

What version of Home Assistant Core has the issue?

2024.11.3

Device / Model

Nest Protect Smoke and CO Detector Topaz-2.33 Firmware: 3.5rc3

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:208
integration: Nest Protect (documentation, issues)
First occurred: 6:43:03 AM (2 occurrences)
Last logged: 6:48:03 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'

The error continues to make log entries:

This error originated from a custom integration.

Logger: custom_components.nest_protect
Source: custom_components/nest_protect/__init__.py:208
integration: Nest Protect (documentation, issues)
First occurred: 6:43:03 AM (6 occurrences)
Last logged: 7:08:04 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'

Additional information

No response

@tggman tggman added the bug Something isn't working label Dec 2, 2024
@ablyler
Copy link

ablyler commented Dec 6, 2024

I think this is a duplicate of #338

@iMicknl iMicknl closed this as completed Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants