Skip to content

Treat entity "unknown" states in the same way as "unavailable"#245

Open
borreeero wants to merge 1 commit into
rianadon:mainfrom
borreeero:bug/nullify-unknown-state
Open

Treat entity "unknown" states in the same way as "unavailable"#245
borreeero wants to merge 1 commit into
rianadon:mainfrom
borreeero:bug/nullify-unknown-state

Conversation

@borreeero

Copy link
Copy Markdown

Should fix #244. When an entity state is unknown, the card currently displays an error (even with debug: true). I noticed that the function nullifyState is not returning null in this case, as only handles unknown.

This happened for me with a LG diswasher with the official LG ThingQ integration, where most of the entities have an unknown state shortly after the cycle has finished, and interestingly unavailable from Home Assistant start until you turn it on.

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.

Error: Expected duration unknown to be a number

2 participants