slashback100 / presence_simulation

Home Assistant Presence Simulation
423 stars 22 forks source link

Error on newest Home-Assistant Dev Version 2022.7.0.dev #59

Closed enkama closed 2 years ago

enkama commented 2 years ago

Here is the log

Setup failed for custom integration presence_simulation: Unable to import component: cannot import name 'States' from 'homeassistant.components.recorder.models' (/usr/src/homeassistant/homeassistant/components/recorder/models.py)

slashback100 commented 2 years ago

Change needed due to this PR https://github.com/home-assistant/core/pull/72977

BigWebstas commented 2 years ago

+1 im getting the same issue

slashback100 commented 2 years ago

Fixed in v2.0.

pannal commented 2 years ago

2.0 throws a new error for me:

Setup failed for custom integration presence_simulation: Unable to import component: No module named 'homeassistant.components.recorder.db_schema'
slashback100 commented 2 years ago

I guess you are using an earlier version than 2022.7. v2.0 should only be used with 2022.7 and more (it is written in the description of the version). Please go back to a v1.x version (I couldn't find the way to only allow the download of v2 version for >= 2022.7 versions)

pannal commented 2 years ago

Oh I misread. I'm on 2022.6.7, not 2022.7. Sorry!

slashback100 commented 2 years ago

No problem. I found a way to make it compatible with old and new version of HA -> 2.1 published