-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
ValueError: could not convert string to float: 'None' #10
Labels
bug
Something isn't working.
Comments
These changes fixed it for me: marecabo@29ab960 Is that the right spot for these changes to fix that issue? |
@marecabo looks like your fix works :) Maybe Pull Requets help this along? |
10 tasks
Limych
added a commit
that referenced
this issue
Sep 6, 2020
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version of the custom_component
1.4.2
bb1cdba
Configuration
Describe the bug
When the original sensor entity to compute the average of, is available but has an unknown state, this error occurs.
This might be related to #2?
To Reproduce
sonoff1
sensor which is the living room.)(So during the first start of the average sensor, the original sensor has no value, but there are still values in the period (1 day) to compute the average of, see fig 2)
The other average sensors (sonoff5 and sonoff6) worked fine, as they had a not-unknown state for their original sensors for > 1 day.
Expected behavior
I expected the average sensor to produce an average value of the configured period of all the not-unknown values in that period. It looks like, the average sensor cannot cope with past (or still ongoing) sections in the state history that have unknown values.
Screenshots
fig 1
fig 2
fig 3
Debug log
Thanks for your work at this component! Feel free to let me know how to further assist you in tracing this down.
The text was updated successfully, but these errors were encountered: