8000 `frontend.reload_themes` errors if `frontend:` isn't set but `default_config:` is in `configuration.yaml` · Issue #73286 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

frontend.reload_themes errors if frontend: isn't set but default_config: is in configuration.yaml #73286

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

Closed
felipecrs opened this issue Jun 9, 2022 · 2 comments · Fixed by #73287

Comments

@felipecrs
Copy link
Contributor

The problem

The title says all.

What version of Home Assistant Core has the issue?

2022.6.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Frontend

Link to integration documentation on our website

https://www.home-assistant.io/integrations/frontend/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.helpers.script.websocket_api_script
Source: components/frontend/__init__.py:463
First occurred: 12:52:23 PM (7 occurrences)
Last logged: 2:19:52 PM

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'frontend'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1704, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 750, in admin_handler
    await result
  File "/usr/src/homeassistant/homeassistant/components/frontend/__init__.py", line 463, in reload_themes
    new_themes = config[DOMAIN].get(CONF_THEMES, {})
KeyError: 'frontend'

Additional information

Adding frontend: to configuration.yaml solves the issue, although default_config: is already there.

@probot-home-assistant
Copy link

frontend documentation
frontend source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @home-assistant/frontend, mind taking a look at this issue as it has been labeled with an integration (frontend) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@github-actions github-actions bot locked and limited conversation to collaborators Jul 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0