iMicknl / ha-nest-protect

Nest Protect integration for Home Assistant. This will allow you to integrate your smoke, heat, co and occupancy status real-time in HA.
MIT License
339 stars 64 forks source link

AttributeError: 'list' object has no attribute 'object_key' #354

Closed breniii closed 1 month ago

breniii commented 2 months ago

The problem

2024-09-03 20:38:46.827 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'

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

0.4.0b5

What version of Home Assistant Core has the issue?

core-2024.8.3

Device / Model

No response

Diagnostics information

No response

Home Assistant log

Logs ``` 2024-09-03 20:38:46.827 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'```

Additional information

No response

jasonanovak commented 2 months ago

I think this is a dupe of https://github.com/iMicknl/ha-nest-protect/issues/347

iMicknl commented 1 month ago

Duplicate of #347