mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-14 17:08:17 +01:00
Update pages.py
This commit is contained in:
@@ -351,6 +351,7 @@ class LuiPagesGen(object):
|
|||||||
if type(item.stype) == int and len(entity.attributes.forecast) >= item.stype:
|
if type(item.stype) == int and len(entity.attributes.forecast) >= item.stype:
|
||||||
fdate = dp.parse(entity.attributes.forecast[item.stype]['datetime']).astimezone()
|
fdate = dp.parse(entity.attributes.forecast[item.stype]['datetime']).astimezone()
|
||||||
global babel_spec
|
global babel_spec
|
||||||
|
if babel_spec is not None:
|
||||||
dateformat = "E" if item.nameOverride is None else item.nameOverride
|
dateformat = "E" if item.nameOverride is None else item.nameOverride
|
||||||
name = babel.dates.format_date(fdate, dateformat, locale=self._locale)
|
name = babel.dates.format_date(fdate, dateformat, locale=self._locale)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user