Open XerxesDGreat opened 3 months ago
looks like it's due to this constant being removed: https://github.com/home-assistant/core/compare/2024.7.4...2024.8.0b0#diff-160724e1751b3cad9bbf4404c7f98416d09a60015a3cc07f4a7a307f9621db37L22
edit: thought this would link directly to the change since I copied the permalink, but alas!
Any rate, this is the change: https://github.com/home-assistant/core/commit/5dbd7684ce7433f063445254d0f3485c4b6045af
I believe a simple change can be made which works on my local instance:
6 from homeassistant.util import dt
7 - from homeassistant.components.recorder.const import DATA_INSTANCE as RECORDER_INSTANCE
7 + from homeassistant.components.recorder import DATA_INSTANCE as RECORDER_INSTANCE
8 from homeassistant.components.recorder import get_instance
I can submit a merge request if you'd be amenable to that
Thanks, perhaps put a try/except incase someone updates/installs on an earlier HA version. I haven't tried it but something like this.
try:
from homeassistant.components.recorder.const import DATA_INSTANCE as RECORDER_INSTANCE
except ImportError:
from homeassistant.helpers.recorder import DATA_INSTANCE as RECORDER_INSTANCE
Always happy for some help.
I have added your changes. Thanks for your help in spotting this one.
no problem; that's a better fix. Thanks for adding it! (apologies for the delay; I was AFK for a couple days)
Describe the bug After upgrading to the latest homeassistant beta version, an error is shown in the Notifications and the plugin no longer functions
To Reproduce Steps to reproduce the behavior:
Expected behavior Irrigation Unlimited should start with no errors
Screenshots
Irrigation Unlimited log file These messages are very important in helping to determine the problem. Go into Settings -> System -> Logs. In the search box put in
irrigation_unlimited
(Note the underscore between the two words) and press the LOAD FULL LOGS button. Copy and paste below.Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Due to the database migration, it's unclear whether rolling back to a previous version of HomeAssistant functions. I will test this