fordpass-ha icon indicating copy to clipboard operation
fordpass-ha copied to clipboard

potential issue (switches dictionary declared twice)

Open sarangcr03 opened this issue 1 year ago • 2 comments

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

sarangcr03 avatar Oct 22 '23 22:10 sarangcr03

Thanks, something I noticed the other day and have been meaning to remove.

itchannel avatar Oct 22 '23 22:10 itchannel

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.

SquidBytes avatar May 09 '24 21:05 SquidBytes