Update nspanel-lovelace-ui.py

This commit is contained in:
joBr99
2022-03-19 19:16:43 +01:00
committed by GitHub
parent 5a69a8b4db
commit 68b9f53df8

View File

@@ -143,7 +143,8 @@ class NsPanelLovelaceUI:
self.send_mqtt_msg(f"time,{time}")
def update_date(self, kwargs):
if self.babel_spec is not None:
global babel_spec
if babel_spec is not None:
self.api.log("Babel package found", level="DEBUG")
if "dateFormatBabel" in self.config:
dateformat = self.config["dateFormatBabel"]