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

Error "expected str" after fixing any issue in the data while creating a new Target Rate #863

Closed heisenberg2980 closed 4 months ago

heisenberg2980 commented 4 months ago

Describe the bug

After making any mistake while introducing data on the screen and clicking submit, like in this example:

image

Even after fixing the issue the screen keeps returning the error "expected str", which is confusing as the data is already correct:

Screenshot 2024-05-05 232209

After closing the screen and adding the same data again the Target Rate is created, which means the data is correct.

Reproduction steps

Expected behaviour

If the data is correct the target rate should be created. It seems when the first error is returned the screen changes the behaviour and expects a string in the hours field instead of a number

Tariff Code

E-1R-AGILE-24-04-03-B

Integration Version

10.3.1

Home Assistant Version

2024.5.1

Fresh Install?

Not specified

Home Assistant Logs

N/A

Confirmation

BottlecapDave commented 4 months ago

Thanks for raising this. I'll try and fix this for the next update.

BottlecapDave commented 4 months ago

This should now be fixed in v11.0.0.