mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Store automation and script traces (#56894)
* Store automation and script traces * Pylint * Deduplicate code * Fix issues when no stored traces are available * Store serialized data for restored traces * Update WS API * Update test * Restore context * Improve tests * Add new test files * Rename restore_traces to async_restore_traces * Refactor trace.websocket_api * Defer loading stored traces * Lint * Revert refactoring which is no longer needed * Correct order when restoring traces * Apply suggestion from code review * Improve test coverage * Apply suggestions from code review
This commit is contained in:
@@ -228,7 +228,6 @@ def areas_in_automation(hass: HomeAssistant, entity_id: str) -> list[str]:
|
||||
|
||||
async def async_setup(hass, config):
|
||||
"""Set up all automations."""
|
||||
# Local import to avoid circular import
|
||||
hass.data[DOMAIN] = component = EntityComponent(LOGGER, DOMAIN, hass)
|
||||
|
||||
# To register the automation blueprints
|
||||
|
||||
Reference in New Issue
Block a user