BottlecapDave / HomeAssistant-OctopusEnergy

Unofficial Home Assistant integration for interacting with Octopus Energy
https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/
MIT License
570 stars 57 forks source link

ServiceValidationError on startup #827

Closed rawnsley closed 5 months ago

rawnsley commented 5 months ago

Describe the bug

After installing and configuring the Octopus Energy plug-in (API key only, no other parameters), I get the following log error on startup:

2024-04-07 09:03:17.657 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform octopus_energy.sensor: Platform not found (cannot import name 'ServiceValidationError' from 'homeassistant.exceptions' (/usr/src/homeassistant/homeassistant/exceptions.py)).

Reproduction steps

Install plug-in on pretty vanilla Home Assistant platform

Expected behaviour

No error messages in logs

Tariff Code

Not sure

Integration Version

Latest at time of submission

Home Assistant Version

Core 2023.11.2

Fresh Install?

Fresh install

Home Assistant Logs

2024-04-07 09:03:17.657 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform octopus_energy.sensor: Platform not found (cannot import name 'ServiceValidationError' from 'homeassistant.exceptions' (/usr/src/homeassistant/homeassistant/exceptions.py)).

Confirmation

BottlecapDave commented 5 months ago

Hello. Sorry I forgot to increase the minimum required version of HA in HACS. I believe you will need at least 2023.12.0 of HA for any version greater than v10.2.0 of the integration.

rawnsley commented 5 months ago

Ah OK. I'll retest next time I upgrade. Thanks for the super quick reply!