Comments (4)
I can add for same "unknown_entity_references"-check-part of startup
Logger: custom_components.spook
Source: custom_components/spook/repairs/lovelace_unknown_entity_references.py:200
Integration: Spook ([documentation](https://github.com/frenck/spook), [issues](https://github.com/frenck/spook/issues))
First occurred: 08:32:37 (12 occurrences)
Last logged: 08:45:02
Unexpected exception from <function AbstractSpookRepair.async_activate.<locals>._async_inspect at 0xffff8f11e3b0>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 117, in _handle_timer_finish
await task
File "/config/custom_components/spook/repairs/__init__.py", line 130, in _async_inspect
await self.async_inspect()
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 108, in async_inspect
for entity_id in self.__async_extract_entities(config)
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 154, in __async_extract_entities
entities.update(self.__async_extract_entities_from_badge(badge))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 200, in __async_extract_entities_from_badge
return set(config["entities"])
TypeError: unhashable type: 'dict'
from spook.
Thanks for reporting those!
I've prepared a small change to make Spook more resilient against unexpected configuration formats.
../Frenck
from spook.
@frenck This one is closed now but I still get these error. Should I open a new one?
2023-06-01 18:59:52.372 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: script_unknown_entity_references
2023-06-01 18:59:52.385 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: automation_unknown_device_references
2023-06-01 18:59:53.172 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: automation_unknown_area_references
2023-06-01 18:59:53.177 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: switch_as_x_unknown_source
2023-06-01 18:59:53.184 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: automation_unknown_entity_references
2023-06-01 18:59:54.844 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: integration_unknown_source
2023-06-01 18:59:54.850 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: lovelace_unknown_entity_references
2023-06-01 18:59:54.853 DEBUG (MainThread) [custom_components.spook] Config for dashboard lovelace not found, skipping
2023-06-01 18:59:54.853 ERROR (MainThread) [custom_components.spook] Unexpected exception from <function AbstractSpookRepair.async_activate.<locals>._async_inspect at 0xffff8ec57eb0>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 117, in _handle_timer_finish
await task
File "/config/custom_components/spook/repairs/__init__.py", line 130, in _async_inspect
await self.async_inspect()
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 108, in async_inspect
for entity_id in self.__async_extract_entities(config)
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 159, in __async_extract_entities
entities.update(self.__async_extract_entities_from_card(card))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 230, in __async_extract_entities_from_card
self.__async_extract_entities_from_header_footer(header_footer),
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 308, in __async_extract_entities_from_header_footer
entities.update(self.__async_extract_entities_from_actions(config))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 254, in __async_extract_entities_from_actions
if action := config.get(key):
AttributeError: 'str' object has no attribute 'get'
2023-06-01 18:59:54.861 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: group_unknown_members
2023-06-01 18:59:54.865 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: script_unknown_device_references
2023-06-01 18:59:54.868 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: script_unknown_area_references
2023-06-01 19:00:02.382 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: script_unknown_entity_references
2023-06-01 19:00:03.200 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: automation_unknown_entity_references
2023-06-01 19:00:04.862 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: lovelace_unknown_entity_references
2023-06-01 19:00:04.865 DEBUG (MainThread) [custom_components.spook] Config for dashboard lovelace not found, skipping
2023-06-01 19:00:04.866 ERROR (MainThread) [custom_components.spook] Unexpected exception from <function AbstractSpookRepair.async_activate.<locals>._async_inspect at 0xffff8ec57eb0>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 117, in _handle_timer_finish
await task
File "/config/custom_components/spook/repairs/__init__.py", line 130, in _async_inspect
await self.async_inspect()
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 108, in async_inspect
for entity_id in self.__async_extract_entities(config)
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 159, in __async_extract_entities
entities.update(self.__async_extract_entities_from_card(card))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 230, in __async_extract_entities_from_card
self.__async_extract_entities_from_header_footer(header_footer),
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 308, in __async_extract_entities_from_header_footer
entities.update(self.__async_extract_entities_from_actions(config))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 254, in __async_extract_entities_from_actions
if action := config.get(key):
AttributeError: 'str' object has no attribute 'get'
2023-06-01 19:00:29.030 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: script_unknown_entity_references
2023-06-01 19:00:29.034 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: automation_unknown_entity_references
2023-06-01 19:00:29.039 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: lovelace_unknown_entity_references
2023-06-01 19:00:29.042 DEBUG (MainThread) [custom_components.spook] Config for dashboard lovelace not found, skipping
2023-06-01 19:00:29.042 ERROR (MainThread) [custom_components.spook] Unexpected exception from <function AbstractSpookRepair.async_activate.<locals>._async_inspect at 0xffff8ec57eb0>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 117, in _handle_timer_finish
await task
File "/config/custom_components/spook/repairs/__init__.py", line 130, in _async_inspect
await self.async_inspect()
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 108, in async_inspect
for entity_id in self.__async_extract_entities(config)
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 159, in __async_extract_entities
entities.update(self.__async_extract_entities_from_card(card))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 230, in __async_extract_entities_from_card
self.__async_extract_entities_from_header_footer(header_footer),
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 308, in __async_extract_entities_from_header_footer
entities.update(self.__async_extract_entities_from_actions(config))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 254, in __async_extract_entities_from_actions
if action := config.get(key):
AttributeError: 'str' object has no attribute 'get'
2023-06-01 19:01:10.959 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: script_unknown_entity_references
2023-06-01 19:01:10.970 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: automation_unknown_entity_references
2023-06-01 19:01:10.981 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: lovelace_unknown_entity_references
2023-06-01 19:01:10.990 DEBUG (MainThread) [custom_components.spook] Config for dashboard lovelace not found, skipping
2023-06-01 19:01:10.991 ERROR (MainThread) [custom_components.spook] Unexpected exception from <function AbstractSpookRepair.async_activate.<locals>._async_inspect at 0xffff8ec57eb0>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 117, in _handle_timer_finish
await task
File "/config/custom_components/spook/repairs/__init__.py", line 130, in _async_inspect
await self.async_inspect()
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 108, in async_inspect
for entity_id in self.__async_extract_entities(config)
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 159, in __async_extract_entities
entities.update(self.__async_extract_entities_from_card(card))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 230, in __async_extract_entities_from_card
self.__async_extract_entities_from_header_footer(header_footer),
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 308, in __async_extract_entities_from_header_footer
entities.update(self.__async_extract_entities_from_actions(config))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 254, in __async_extract_entities_from_actions
if action := config.get(key):
AttributeError: 'str' object has no attribute 'get'
2023-06-01 19:02:35.815 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: script_unknown_entity_references
2023-06-01 19:02:35.818 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: automation_unknown_entity_references
2023-06-01 19:02:35.823 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: lovelace_unknown_entity_references
2023-06-01 19:02:35.826 DEBUG (MainThread) [custom_components.spook] Config for dashboard lovelace not found, skipping
2023-06-01 19:02:35.827 ERROR (MainThread) [custom_components.spook] Unexpected exception from <function AbstractSpookRepair.async_activate.<locals>._async_inspect at 0xffff8ec57eb0>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 117, in _handle_timer_finish
await task
File "/config/custom_components/spook/repairs/__init__.py", line 130, in _async_inspect
await self.async_inspect()
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 108, in async_inspect
for entity_id in self.__async_extract_entities(config)
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 159, in __async_extract_entities
entities.update(self.__async_extract_entities_from_card(card))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 230, in __async_extract_entities_from_card
self.__async_extract_entities_from_header_footer(header_footer),
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 308, in __async_extract_entities_from_header_footer
entities.update(self.__async_extract_entities_from_actions(config))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 254, in __async_extract_entities_from_actions
if action := config.get(key):
AttributeError: 'str' object has no attribute 'get'
2023-06-01 19:03:59.036 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: script_unknown_entity_references
2023-06-01 19:03:59.040 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: automation_unknown_entity_references
2023-06-01 19:03:59.045 DEBUG (MainThread) [custom_components.spook] Spook is inspecting: lovelace_unknown_entity_references
2023-06-01 19:03:59.048 DEBUG (MainThread) [custom_components.spook] Config for dashboard lovelace not found, skipping
2023-06-01 19:03:59.048 ERROR (MainThread) [custom_components.spook] Unexpected exception from <function AbstractSpookRepair.async_activate.<locals>._async_inspect at 0xffff8ec57eb0>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 117, in _handle_timer_finish
await task
File "/config/custom_components/spook/repairs/__init__.py", line 130, in _async_inspect
await self.async_inspect()
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 108, in async_inspect
for entity_id in self.__async_extract_entities(config)
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 159, in __async_extract_entities
entities.update(self.__async_extract_entities_from_card(card))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 230, in __async_extract_entities_from_card
self.__async_extract_entities_from_header_footer(header_footer),
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 308, in __async_extract_entities_from_header_footer
entities.update(self.__async_extract_entities_from_actions(config))
File "/config/custom_components/spook/repairs/lovelace_unknown_entity_references.py", line 254, in __async_extract_entities_from_actions
if action := config.get(key):
AttributeError: 'str' object has no attribute 'get'
from spook.
@emufan yes, as this is closed... and you have a new one... new issue = new issue :)
from spook.
Related Issues (20)
- Importing services does blocking I/O in the event loop
- False positive: binary_sensor.backups_stale is reported as missing after home assistant restart HOT 1
- Attribute error for spook repairs with core 2024.4 HOT 2
- Enable entity does not work HOT 2
- Detected blocking call to import_module inside the event loop HOT 1
- Detected blocking call to import_module inside the event HOT 1
- Increment/Decrement doesn't work on step of 0.1
- Error while setting up spook platform for switch, sensor, event & button HOT 1
- Google Backup Entities HOT 5
- Repair not clearing HOT 5
- Errors in log when reloading Spook: Unable to remove unknown job listener
- flatten not consistently working for template sensor HOT 1
- Ignore issues keep popping up. HOT 3
- light group causes "Unknown entities used in <automation>"
- An error in localization HOT 1
- You can not select disabled devices when using Enable Device HOT 1
- Generating abundant async_delete_issue HOT 2
- Error "Validation of translation placeholders for localized (pl)..." HOT 5
- spook tell me there is an issue even if i have correct the problem HOT 1
- wrong Link in Documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spook.