-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tariff cost cant add a value that consists of 0,0xxx number #111
Comments
This is a bug, but it's not actually a bug with my code. The system that
checks data input is called voluptuous and seems to autocorrect 0.0 to 0
before you have time to type the next number. The workaround is to type
0.XX first and then go back and add the second zero after 0.24 -> 0.024.
That way it still recognises it as a floating point number and doesn't
correct it to zero. I could change it to a free text field, but then you
could enter other things like letters that would also break the system.
Maybe I will do that on the next release and add my own input verification.
Thanks for flagging up.
…On Mon, 29 Jan 2024 at 19:55, YOYONL89 ***@***.***> wrote:
Hello,
When i try to add a Sessy to the simulator i cant add a fixed tariff
number which consists of 0,0xxx.
When i add a number consisting of 0,xxx it works.
Running Battery_sim 1.3.4
HA: 2024.1.5
—
Reply to this email directly, view it on GitHub
<#111>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAIZGMB23AK2WC6NZV7NU3YQ75CVAVCNFSM6AAAAABCQA4UR2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDMMZQGE3DONI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi hif2k1, Workaround verified and your correct that works. |
Thanks, leave it open please
…On Sun, 4 Feb 2024, 13:36 YOYONL89, ***@***.***> wrote:
Hi hif2k1,
Workaround verified and your correct that works.
You want me to close this issue or does it remain open until you decided
on what to do in your next release?
—
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAIZGNULSOQ6YS2U3XYP6LYR6FERAVCNFSM6AAAAABCQA4UR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVG42TENBTHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
When i try to add a Sessy to the simulator i cant add a fixed tariff number which consists of 0,0xxx.
When i add a number consisting of 0,xxx it works.
Running Battery_sim 1.3.4
HA: 2024.1.5
The text was updated successfully, but these errors were encountered: