From 4e6d753d2fd9de4e5628012c4fcef4b67dd93180 Mon Sep 17 00:00:00 2001 From: Erwin Oldenkamp Date: Mon, 20 Jun 2022 10:10:10 +0200 Subject: [PATCH] Add support for the locked status but car is connected (#73551) --- homeassistant/components/wallbox/__init__.py | 2 +- homeassistant/components/wallbox/const.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/wallbox/__init__.py b/homeassistant/components/wallbox/__init__.py index 332a1ee6741..ae003d84a9c 100644 --- a/homeassistant/components/wallbox/__init__.py +++ b/homeassistant/components/wallbox/__init__.py @@ -70,7 +70,7 @@ CHARGER_STATUS: dict[int, ChargerStatus] = { 195: ChargerStatus.CHARGING, 196: ChargerStatus.DISCHARGING, 209: ChargerStatus.LOCKED, - 210: ChargerStatus.LOCKED, + 210: ChargerStatus.LOCKED_CAR_CONNECTED, } diff --git a/homeassistant/components/wallbox/const.py b/homeassistant/components/wallbox/const.py index 6152207427b..0e4e1477911 100644 --- a/homeassistant/components/wallbox/const.py +++ b/homeassistant/components/wallbox/const.py @@ -41,6 +41,7 @@ class ChargerStatus(StrEnum): ERROR = "Error" READY = "Ready" LOCKED = "Locked" + LOCKED_CAR_CONNECTED = "Locked, car connected" UPDATING = "Updating" WAITING_IN_QUEUE_POWER_SHARING = "Waiting in queue by Power Sharing" WAITING_IN_QUEUE_POWER_BOOST = "Waiting in queue by Power Boost"