mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-28 10:24:20 +01:00
fix state and state_not
This commit is contained in:
@@ -256,9 +256,9 @@ class LuiPagesGen(object):
|
||||
# HA Entities
|
||||
entity = apis.ha_api.get_entity(entityId)
|
||||
# check state for if a condition is defined
|
||||
if item.condState is not None and item.condState == entity.state:
|
||||
if item.condState is not None and item.condState != entity.state:
|
||||
return ""
|
||||
if item.condStateNot is not None and item.condState != entity.state:
|
||||
if item.condStateNot is not None and item.condStateNot == entity.state:
|
||||
return ""
|
||||
|
||||
# common res vars
|
||||
|
||||
Reference in New Issue
Block a user