Update controller.py

fixes #900
This commit is contained in:
Johannes
2023-05-21 09:56:15 +02:00
committed by GitHub
parent 5d02de6b6d
commit c9222a9484

View File

@@ -145,8 +145,8 @@ class LuiController(object):
items = self._config.get_all_entity_names()
apis.ha_api.log(f"gtest123: {items}")
prefixes = ("navigate.")
items = [x for x in items if not x.startswith(prefixes)]
prefixes = ("navigate.", "delete", "iText")
items = [x for x in items if not (x.startswith(prefixes) or x is None)]
apis.ha_api.log(f"Registering callbacks for the following items: {items}")
for item in items:
if apis.ha_api.entity_exists(item):