mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-24 02:02:15 +01:00
fix cover and input boolean
This commit is contained in:
@@ -44,9 +44,9 @@ def map_to_mdi_name(ha_type, state=None, device_class=None):
|
|||||||
if ha_type == "light":
|
if ha_type == "light":
|
||||||
return "lightbulb"
|
return "lightbulb"
|
||||||
if ha_type == "input_boolean":
|
if ha_type == "input_boolean":
|
||||||
return "check-circle-outline" if entity.state == "on" else "close-circle-outline"
|
return "check-circle-outline" if state == "on" else "close-circle-outline"
|
||||||
if ha_type == "cover":
|
if ha_type == "cover":
|
||||||
return "window-open" if entity.state == "open" else "window-closed"
|
return "window-open" if state == "open" else "window-closed"
|
||||||
|
|
||||||
elif ha_type == "sensor":
|
elif ha_type == "sensor":
|
||||||
if state == "on":
|
if state == "on":
|
||||||
|
|||||||
Reference in New Issue
Block a user