mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 23:14:25 +01:00
fix
This commit is contained in:
@@ -2,8 +2,8 @@ import json
|
|||||||
import datetime
|
import datetime
|
||||||
import hassapi as hass
|
import hassapi as hass
|
||||||
from helper import scale, pos_to_color, rgb_dec565, rgb_brightness
|
from helper import scale, pos_to_color, rgb_dec565, rgb_brightness
|
||||||
from icon_mapping import get_icon_id
|
from icon_mapper import get_icon_id
|
||||||
from icons import get_icon_id_ha
|
from icons import get_icon_id_ha, map_to_mdi_name
|
||||||
# check Babel
|
# check Babel
|
||||||
import importlib
|
import importlib
|
||||||
babel_spec = importlib.util.find_spec("babel")
|
babel_spec = importlib.util.find_spec("babel")
|
||||||
@@ -461,7 +461,7 @@ class LovelaceUIPanel:
|
|||||||
name = entity.attributes.friendly_name
|
name = entity.attributes.friendly_name
|
||||||
|
|
||||||
if item_type == "cover":
|
if item_type == "cover":
|
||||||
icon_id = get_icon_id_ha("cover", state=entity.state overwrite=icon)
|
icon_id = get_icon_id_ha("cover", state=entity.state, overwrite=icon)
|
||||||
return f",shutter,{item},{icon_id},17299,{name},"
|
return f",shutter,{item},{icon_id},17299,{name},"
|
||||||
|
|
||||||
if item_type == "light":
|
if item_type == "light":
|
||||||
|
|||||||
Reference in New Issue
Block a user