core: AttributeError: module 'homeassistant.components.automation.sun' has no attribute 'ENTITY_ID'
The problem
I see this error returning in my logging:
AttributeError: module 'homeassistant.components.automation.sun' has no attribute 'ENTITY_ID'
2020-02-06 00:55:53 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140352393080528] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 20, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/search/__init__.py", line 49, in websocket_search_related
msg["id"], searcher.async_search(msg["item_type"], msg["item_id"])
File "/usr/src/homeassistant/homeassistant/components/search/__init__.py", line 89, in async_search
getattr(self, f"_resolve_{search_type}")(search_id)
File "/usr/src/homeassistant/homeassistant/components/search/__init__.py", line 163, in _resolve_entity
for entity in automation.automations_with_entity(self.hass, entity_id):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 136, in automations_with_entity
if entity_id in automation_entity.referenced_entities:
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 321, in referenced_entities
for entity_id in _trigger_extract_entities(conf):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 581, in _trigger_extract_entities
return [sun.ENTITY_ID]
AttributeError: module 'homeassistant.components.automation.sun' has no attribute 'ENTITY_ID'
Any idea what might be wrong?
Environment
I’m running Home-Assistant core: 0.105.0 This error did not occur in previous version: 0.104.3 I’m running it in a Docker on a Synology Server
Problem-relevant configuration.yaml
Traceback/Error logs
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 5
- Comments: 18 (12 by maintainers)
This is so weird. I don’t understand it, but I’ll remove that reference in 105.2.
FYI, this is not impacting behavior of running your automations. This is used to power the new related items feature.