Update nspanel-lovelace-ui.py

This commit is contained in:
Johannes
2022-03-19 19:16:43 +01:00
committed by GitHub
parent 413401b1f9
commit 0921dd81b8

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"]