fordpass-ha
fordpass-ha copied to clipboard
potential issue (switches dictionary declared twice)
Not sure if this was intentionally done to disable guardmode switch temporarily but the switches dictionary is declared twice in const.py
SWITCHES = {"ignition": {"icon": "hass:power"}, "guardmode": {"icon": "mdi:shield-key"}}
WINDOW_POSITIONS = {
"CLOSED": {
"Fully_Closed": "Closed",
"Fully_closed_position": "Closed",
"Fully closed position": "Closed",
},
"OPEN": {
"Fully open position": "Open",
"Fully_Open": "Open",
"Btwn 10% and 60% open": "Open-Partial",
},
}
SWITCHES = {
"ignition": {"icon": "hass:power"},
# "guardmode": {"icon": "mdi:shield-key"}
}
Thanks, something I noticed the other day and have been meaning to remove.
Noticed this and then noticed the issue. I'm not sure if this was ever added to a release put I put it on the 1.68 branch.