From 1a2c9fd9a9ec8538fea05aeeddf64fc8def4850d Mon Sep 17 00:00:00 2001 From: Hessel Date: Tue, 10 Oct 2023 21:23:02 +0200 Subject: [PATCH] Change BiDirectional Prefix (#101764) --- homeassistant/components/wallbox/const.py | 2 +- homeassistant/components/wallbox/number.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/wallbox/const.py b/homeassistant/components/wallbox/const.py index 9bab8232dab..eec7bb4e8da 100644 --- a/homeassistant/components/wallbox/const.py +++ b/homeassistant/components/wallbox/const.py @@ -3,7 +3,7 @@ from enum import StrEnum DOMAIN = "wallbox" -BIDIRECTIONAL_MODEL_PREFIXES = ["QSX"] +BIDIRECTIONAL_MODEL_PREFIXES = ["QS"] CODE_KEY = "code" CONF_STATION = "station" diff --git a/homeassistant/components/wallbox/number.py b/homeassistant/components/wallbox/number.py index b8ce331146d..dff723c579b 100644 --- a/homeassistant/components/wallbox/number.py +++ b/homeassistant/components/wallbox/number.py @@ -79,7 +79,7 @@ class WallboxNumber(WallboxEntity, NumberEntity): self._coordinator = coordinator self._attr_unique_id = f"{description.key}-{coordinator.data[CHARGER_DATA_KEY][CHARGER_SERIAL_NUMBER_KEY]}" self._is_bidirectional = ( - coordinator.data[CHARGER_DATA_KEY][CHARGER_PART_NUMBER_KEY][0:3] + coordinator.data[CHARGER_DATA_KEY][CHARGER_PART_NUMBER_KEY][0:2] in BIDIRECTIONAL_MODEL_PREFIXES )