Skip to content
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

Fix retrieving history when the entity was unavailable #1335

Conversation

iainlane
Copy link
Contributor

If the entity was unavailable at some point, it seems we get unavailable returned in its history. Currently, we'll try to progress this value as if it were a number, and we get:

Could not convert 'unavailable' to float in check_ambient_air_temperature()

in the logs. We can suppress this by filtering out such values before trying to process them.

If the entity was unavailable at some point, it seems we get
`unavailable` returned in its history. Currently, we'll try to progress
this value as if it were a number, and we get:

> Could not convert 'unavailable' to float in check_ambient_air_temperature()

in the logs. We can suppress this by filtering out such values before
trying to process them.
@KartoffelToby KartoffelToby merged commit d88357f into KartoffelToby:master Apr 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Thermostat unavailable, says air temperature unavailable but air temp is working
2 participants