This commit is contained in:
joBr99
2023-11-26 13:02:18 +01:00
parent b38189d63e
commit ad891115a9
2 changed files with 264 additions and 271 deletions

View File

@@ -1,6 +1,6 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config # https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: NSPanel Lovelace UI Addon name: NSPanel Lovelace UI Addon
version: "4.7.44" version: "4.7.46"
slug: nspanel-lovelace-ui slug: nspanel-lovelace-ui
description: NSPanel Lovelace UI Addon description: NSPanel Lovelace UI Addon
services: services:
@@ -17,15 +17,8 @@ init: false
map: map:
- addon_config:rw - addon_config:rw
options: options:
loglevel: loglevel: DEBUG
- DEBUG logtofile: true
- INFO
- WARNING
- ERROR
- CRITICAL
logtofile:
- true
- false
schema: schema:
loglevel: list(DEBUG|INFO|WARNING|ERROR|CRITICAL) loglevel: list(DEBUG|INFO|WARNING|ERROR|CRITICAL)
logtofile: bool logtofile: bool

View File

@@ -213,7 +213,7 @@ def execute_script(entity_name: str, domain: str, service: str, service_data: di
raise TimeoutError("Did not recive respose in time to HA script call") raise TimeoutError("Did not recive respose in time to HA script call")
except Exception as e: except Exception as e:
logging.exception("Failed to call Home Assisatant script.") logging.exception("Failed to call Home Assisatant script.")
return False return {}
def cache_template(template): def cache_template(template):
global next_id, response_buffer global next_id, response_buffer