Skip to content
Snippets Groups Projects
Commit 06bd812b authored by Paulus Schoutsen's avatar Paulus Schoutsen
Browse files

Make state unknown if None returned

parent 8857c48c
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ class Entity(object):
if force_refresh:
self.update()
state = str(self.state)
state = STATE_UNKNOWN if self.state is None else str(self.state)
attr = self.state_attributes or {}
device_attr = self.device_state_attributes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment