Recorder Problems after Update to 2022.7.0

Hello @all,

i’m using HA for round about 1 Year but im really new in this community.
Since yet i could solve all my problems with existing threads. But now i need your help.

Since the installation of home assistant core 2022.7.0 i get some issues.

When i check the configuration i get the following message and i can’t restart HA:

Package variablen setup failed. Component var cannot import name ‘Events’ from ‘homeassistant.components.recorder.models’ (/usr/src/homeassistant/homeassistant/components/recorder/models.py)

the 2nd issue i get is from the integration “auto_backup”. It wouldn’t load anymore.

Setup failed for custom integration auto_backup: Unable to import component: cannot import name ‘X_HASSIO’ from ‘homeassistant.components.hassio.const’ (/usr/src/homeassistant/homeassistant/components/hassio/const.py)

My system is:

Rasperry PI4
Home Assistant 2022.7.2
Supervisor 2022.07.0
Operating System 8.2
Frontend 20220707.0 - latest

Thank you an best regards
DD88

I’m getting the same first error message

cannot import name 'Events' from 'homeassistant.components.recorder.models' (/usr/src/homeassistant/homeassistant/components/recorder/models.py)

I haven’t figured out the fix yet

Upgrading your AutoBackup to 1.1.0 or 1.1.1 should solve this problem.

" * Drop deprecated X_HASSIO constant (fixes [#61]) "

Chiming in on 2022.7.2

Had my RPi4 crash/being not available. After powercycling I’m getting:

    history (Show logs)
    energy (Show logs)
    filter.sensor (Show logs)
    default_config (Show logs)

each of them along the lines of: Setup failed for logbook: (DependencyError(...), 'Could not setup dependencies: recorder') Setup failed for history: (DependencyError(...), 'Could not setup dependencies: recorder') Setup failed for energy: (DependencyError(...), 'Could not setup dependencies: history, recorder') Setup failed for default_config: (DependencyError(...), 'Could not setup dependencies: energy, history, logbook')

Running the official MariaDB addon (v2.5.0)

Edit: Commenting out the recorder setting in the config helped for now.

I’ve updated ‘Variable’ and a few other addons and it is working fine now

This worked for me, too.
I’ve updated all my addons and integrations in Hacks and all the issues dissapeared.

Thank you all for the help.

Hi,

I have still the same problems!

I’m using the var integration for a while, but after some HA upgrades, and if I try to restart HA I get this message:

The system cannot restart because the configuration is not valid: Component error: var - cannot import name ‘Events’ from ‘homeassistant.components.recorder.models’ (/usr/src/homeassistant/homeassistant/components/recorder/models.py)

This what I have configured in my configuration.yaml

var:
d:
friendly_name: ‘Datum’
initial_value: ‘01/06/22’
icon: mdi:flash-outline

e:
friendly_name: ‘Teller’
initial_value: ‘21041’
icon: mdi:flash-outline

This works fine till HA upgrade!

As already mentioned in this topic, I have also updates all my integrations.
I have also removed and reinstalled several times my var integration, but still no results!

Any help is welcome! :slight_smile:

regards,

 Jurgen

Hello,
I have the same issue.
I have all integrations and HACS up to date, but the logs says:

The following integrations and platforms could not be set up:

* history_stats.sensor ([Show logs](https://192.168.1.xx:8123/config/logs?filter=history_stats.sensor))
* [history](https://www.home-assistant.io/integrations/history) ([Show logs](https://192.168.1.xx:8123/config/logs?filter=history))
* [logbook](https://www.home-assistant.io/integrations/logbook) ([Show logs](https://192.168.1.xx:8123/config/logs?filter=logbook))
* [energy](https://www.home-assistant.io/integrations/energy) ([Show logs](https://192.168.1.xx:8123/config/logs?filter=energy))
* [default_config](https://www.home-assistant.io/integrations/default_config) ([Show logs](https://192.168.1.xx:8123/config/logs?filter=default_config))

Please check your config and [logs](https://192.168.1.xx:8123/config/logs).

Can anybody help us?
Thanks you!!