Change BiDirectional Prefix (#101764)

This commit is contained in:
Hessel 2023-10-10 21:23:02 +02:00 committed by Franck Nijhof
parent f0a1977d2e
commit 1a2c9fd9a9
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ from enum import StrEnum
DOMAIN = "wallbox"
BIDIRECTIONAL_MODEL_PREFIXES = ["QSX"]
BIDIRECTIONAL_MODEL_PREFIXES = ["QS"]
CODE_KEY = "code"
CONF_STATION = "station"

View File

@ -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
)