Closed alexhk90 closed 1 week ago
Hello. Sorry that you're seeing this issue. May I ask what version you upgraded from? All config entries should include the account id field (which was migrated a few versions ago).
Do you know if there is a way of checking the version history of this integration in Home Assistant? I tend to upgrade whenever I notice a new version in HACS, but don't know the exact version numbers unfortunately. I think this error has been showing for a few weeks now, so probably through at least at couple of version upgrades, which would be consistent what what you mention about a change a few versions ago.
There is none to my knowledge. If you feel comfortable it would be good to get a redacted look at all config entries that are stored within . storage/config_entries (I believe this is the name of the file) that have a domain of octopus_energy.
Sure - attached: octopus_energy.core.config_entries.txt
Looks like perhaps a couple of my target rate sensors (now disabled/unused) were set up before the "account_id" field was added, so maybe I can just delete / re-create these to resolve the error message in the log?
Interesting. I would hope that HA doesn't only migrate non disabled config entries but that's what it looks like. If you delete those entries, then this should fix your issue, as you suggested.
Confirmed that deleting the disabled target rate sensor (that didn't have the "account_id" field) via the Octopus Energy integration page and reloading the integration (on the same page) worked to clear the error message - thank you!
Describe the bug
Error showing up on the integration page under "Needs attention" - "Failed to set up: Check the logs", however integration appears to actually be working as usual (new rates for Agile tariff updating each day, target rate sensors working). See "Home Assistant Logs" for details (with debug logging enabled).
Reproduction steps
Restart Home Assistant or reload the integration.
Expected behaviour
Not to have this error message in the logs / integration page.
Tariff Code
E-1R-AGILE-23-12-06-C
Integration Version
11.2.0
Home Assistant Version
2024.6.3
Fresh Install?
After upgrading
Home Assistant Logs
Confirmation