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

2025.01: AttributeError: 'str' object has no attribute 'get' #878

Open
spali opened this issue Jan 4, 2025 · 0 comments
Open

2025.01: AttributeError: 'str' object has no attribute 'get' #878

spali opened this issue Jan 4, 2025 · 0 comments

Comments

@spali
Copy link

spali commented Jan 4, 2025

What version of Spook are you using?

3.1.0

What version of Home Assistant are you using?

2025.01.0

The problem

every few minute (1-2) i get the error below since update to HA 2025.01

Anything in the logs? Paste it here!

2025-01-04 21:17:20.203 ERROR (MainThread) [custom_components.spook] Unexpected exception from <function AbstractSpookRepair.async_activate.<locals>._async_inspect at 0x7f68c088fce0>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 137, in _handle_timer_finish
    await task
  File "/config/custom_components/spook/repairs.py", line 158, in _async_inspect
    await self.async_inspect()
  File "/config/custom_components/spook/ectoplasms/lovelace/repairs/unknown_entity_references.py", line 67, in async_inspect
    entity_ids=self.__async_extract_entities(config),
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/config/custom_components/spook/ectoplasms/lovelace/repairs/unknown_entity_references.py", line 98, in __async_extract_entities
    entities.update(self.__async_extract_entities_from_view(view))
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/config/custom_components/spook/ectoplasms/lovelace/repairs/unknown_entity_references.py", line 110, in __async_extract_entities_from_view
    entities.update(self.__async_extract_entities_from_card(card))
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/config/custom_components/spook/ectoplasms/lovelace/repairs/unknown_entity_references.py", line 202, in __async_extract_entities_from_card
    entities.update(self.__async_extract_entities_from_card(card))
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/config/custom_components/spook/ectoplasms/lovelace/repairs/unknown_entity_references.py", line 217, in __async_extract_entities_from_card
    entities.update(self.__async_extract_entities_from_mushroom_chip(chip))
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/config/custom_components/spook/ectoplasms/lovelace/repairs/unknown_entity_references.py", line 299, in __async_extract_entities_from_mushroom_chip
    if chip := config.get("chip"):
               ^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant