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

Safe mode wont work at core config #31761

Closed
marrobHD opened this issue Feb 12, 2020 · 2 comments · Fixed by #31904
Closed

Safe mode wont work at core config #31761

marrobHD opened this issue Feb 12, 2020 · 2 comments · Fixed by #31904

Comments

@marrobHD
Copy link

marrobHD commented Feb 12, 2020

The problem

Environment

  • Home Assistant release with the issue: 0.105.2
  • Last working Home Assistant release (if known): 0.105.0
  • Operating environment (Hass.io/Docker/Windows/etc.): Hass.io
  • Integration causing this issue: homeassistant.config
  • Link to integration documentation on our website: Hass.io

Problem-relevant configuration.yaml

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: !secret latitude
  longitude: !secret longitude
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 75hhjjj
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/Berlin

Traceback/Error logs

2020-02-12 20:43:08 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: expected int for dictionary value @ data['elevation']. Got '75hhjjj'. (See /config/configuration.yaml, line 2). 
2020-02-12 20:43:08 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1201, in async_call
    raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service persistent_notification/create

Additional information

I tested the Safe Mode today. It seems, that the mode wont work correctly at typos in the core config section.

@probot-home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this issue as its been labeled with a integration (safe_mode) you are listed as a codeowner for? Thanks!

@balloob
Copy link
Member

balloob commented Feb 12, 2020

Correct. This is a known issue. We don't currently support the core config being invalid.

@marrobHD marrobHD changed the title Safe mode wont work Safe mode wont work at core config Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants