mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Quick fix to the comparison to validate if an entity is hidden.
This commit is contained in:
parent
a3d6972268
commit
0334074a52
@ -139,7 +139,7 @@ class Entity(object):
|
|||||||
"""
|
"""
|
||||||
if self.entity_id is not None and \
|
if self.entity_id is not None and \
|
||||||
self.entity_id.lower() in self._visibility:
|
self.entity_id.lower() in self._visibility:
|
||||||
return self._visibility[self.entity_id.lower()] is 'hide'
|
return self._visibility[self.entity_id.lower()] == 'hide'
|
||||||
else:
|
else:
|
||||||
return self._hidden
|
return self._hidden
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user