mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-22 22:18:38 +01:00
Update config.py
This commit is contained in:
@@ -25,7 +25,6 @@ class Entity(object):
|
|||||||
self.assumedState = entity_input_config.get("assumed_state", False)
|
self.assumedState = entity_input_config.get("assumed_state", False)
|
||||||
self.stype = entity_input_config.get("type")
|
self.stype = entity_input_config.get("type")
|
||||||
self.value = entity_input_config.get("value")
|
self.value = entity_input_config.get("value")
|
||||||
self.sleepTimeout = entity_input_config.get("sleepTimeout")
|
|
||||||
self.data = entity_input_config.get("data", {})
|
self.data = entity_input_config.get("data", {})
|
||||||
self.entity_input_config = entity_input_config
|
self.entity_input_config = entity_input_config
|
||||||
|
|
||||||
@@ -41,6 +40,7 @@ class Card(object):
|
|||||||
self.key = card_input_config.get("key", "unknown")
|
self.key = card_input_config.get("key", "unknown")
|
||||||
self.nav1Override = card_input_config.get("navItem1")
|
self.nav1Override = card_input_config.get("navItem1")
|
||||||
self.nav2Override = card_input_config.get("navItem2")
|
self.nav2Override = card_input_config.get("navItem2")
|
||||||
|
self.sleepTimeout = entity_input_config.get("sleepTimeout")
|
||||||
self.last_update = 0
|
self.last_update = 0
|
||||||
self.cooldown = card_input_config.get("cooldown", 0)
|
self.cooldown = card_input_config.get("cooldown", 0)
|
||||||
# for single entity card like climate or media
|
# for single entity card like climate or media
|
||||||
@@ -246,4 +246,4 @@ class LuiBackendConfig(object):
|
|||||||
|
|
||||||
def get_card_by_uuid(self, uuid):
|
def get_card_by_uuid(self, uuid):
|
||||||
return self._config_card_table.get(uuid)
|
return self._config_card_table.get(uuid)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user