8000 0.111.0: Upgrade from 0.110.7 fails · Issue #36654 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

0.111.0: Upgrade from 0.110.7 fails #36654

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
bacco007 opened this issue Jun 11, 2020 · 10 comments · Fixed by #36674
Closed

0.111.0: Upgrade from 0.110.7 fails #36654

bacco007 opened this issue Jun 11, 2020 · 10 comments · Fixed by #36674

Comments

@bacco007
Copy link

The problem

Attempted to upgrade from Supervisor panel, update downloads and reboots - but does not complete update, rolling back to 0.110.7

Environment

  • Home Assistant Core release with the issue: 0.111.0
  • Last working Home Assistant Core release (if known): 0.110.7
  • Operating environment (Home Assistant/Supervised/Docker/venv): Supervised
  • Integration causing this issue: Unsure
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

Traceback/Error logs

2020-06-11 17:27:58 ERROR (MainThread) [root] Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 364, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 356, in main
    exit_code = asyncio.run(setup_and_run_hass(config_dir, args), debug=args.debug)
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
    return future.result()
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 255, in setup_and_run_hass
    safe_mode=args.safe_mode,
  File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 92, in async_setup_hass
    config_dict = await conf_util.async_hass_config_yaml(hass)
  File "/usr/src/homeassistant/homeassistant/config.py", line 307, in async_hass_config_yaml
    await merge_packages_config(hass, config, core_config.get(CONF_PACKAGES, {}))
  File "/usr/src/homeassistant/homeassistant/config.py", line 655, in merge_packages_config
    merge_list = _identify_config_schema(component) == "list"
  File "/usr/src/homeassistant/homeassistant/config.py", line 562, in _identify_config_schema
    schema = module.CONFIG_SCHEMA.schema  # type: ignore
AttributeError: 'function' object has no attribute 'schema'

Additional information

@frenck
Copy link
Member
frenck commented Jun 11, 2020

Hi there @bacco007!

Thanks for opening up an issue. This is usually caused by integration not handling its options correctly when using split configuration / packages.

Unfortunately, we can't figure it out by error message. The only wait to attach this currently is by trying to disable/enable each integration you have defined in a package one by one, until you find the culprit.

If you've found it, could you share the name of the integration, so we can take a look? Thanks! 👍

@bacco007
Copy link
Author

Turns out its the OpenUV integration - removing it from my config appears to have resolved the problem.

I get that it's now a deprecated way of configuring the integration, but is it supposed to fail like this or more gracefully?

@frenck
Copy link
Member
frenck commented Jun 11, 2020

@bacco007 Its a bug, has nothing to do with the deprecation itself.

Thanks for pointing out the integration! 👍

@probot-home-assistant
Copy link

openuv documentation
openuv source
(message by IssueLinks)

@probot-home-assistant
< 8000 details-menu class="dropdown-menu dropdown-menu-sw show-more-popover color-fg-default" style="width:185px" src="" preload > Copy link

Hey there @bachya, mind taking a look at this issue as its been labeled with a integration (openuv) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@siom7
Copy link
siom7 commented Jun 11, 2020

Hi !

Same issue for me but I don't have any openuv integration.

I can't find why this upgrade is rolling back :( and now my google cast integration doesn't work.
I have removed/re add the integration but HA can't see my Google Home anymore.

@bachya
Copy link
Contributor
bachya commented Jun 11, 2020

@frenck What’s suggestion here? Have an empty schema (with a deprecation notice, perhaps)?

@frenck
Copy link
Member
frenck commented Jun 11, 2020

Sorry, I planned to look at it, but life got me drifting off my target.
But the suggested solution would probably work.

https://github.com/home-assistant/core/blob/dev/tests/test_config.py#L1034

@frenck
Copy link
Member
frenck commented Jun 11, 2020

Got the reproduction in tests, will try to solve this in the core to prevent it from happening again in general:

image

@frenck
Copy link
Member
frenck commented Jun 11, 2020

The fix is tagged for 0.111.1, which is on route now.

Thanks for reporting @bacco007

hahn-th pushed a commit to hahn-th/core that referenced this issue May 2, 2025
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.

4 participants
0