From 535e2b81cefd062861d7e809bb55ffe7eed08a2b 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 5db279650c4..6caa3c070c8 100644 --- a/homeassistant/components/wallbox/const.py +++ b/homeassistant/components/wallbox/const.py @@ -4,7 +4,7 @@ from enum import StrEnum DOMAIN = "wallbox" UPDATE_INTERVAL = 30 -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 d53a842b916..13938626336 100644 --- a/homeassistant/components/wallbox/number.py +++ b/homeassistant/components/wallbox/number.py @@ -80,7 +80,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 )