After making any mistake while introducing data on the screen and clicking submit, like in this example:
Even after fixing the issue the screen keeps returning the error "expected str", which is confusing as the data is already correct:
After closing the screen and adding the same data again the Target Rate is created, which means the data is correct.
Reproduction steps
Click ADD ENTRY in the Octopus Energy integration
Click Target Rate
Click Submit
Fill the data with some error (e.g. including uppercase letters in the name of the target)
Click SUBMIT
Fix the error in the data
Click SUBMIT again, and the error "expected str" appears, event the data is correct
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
[X] I confirm that I cannot find my solution within the documentation
[X] I confirm that I cannot find my solution within the FAQ
Describe the bug
After making any mistake while introducing data on the screen and clicking submit, like in this example:
Even after fixing the issue the screen keeps returning the error "expected str", which is confusing as the data is already correct:
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