Change max ICP value to fixed value for Wallbox Integration (#140592)

change max ICP value to fixed value

Co-authored-by: Hessel van Es <hessel@datadragons.nl>
This commit is contained in:
Hessel 2025-03-14 16:13:07 +01:00 committed by Franck Nijhof
parent 88e3dcccda
commit 1382a001e3
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -71,9 +71,7 @@ NUMBER_TYPES: dict[str, WallboxNumberEntityDescription] = {
CHARGER_MAX_ICP_CURRENT_KEY: WallboxNumberEntityDescription(
key=CHARGER_MAX_ICP_CURRENT_KEY,
translation_key="maximum_icp_current",
max_value_fn=lambda coordinator: cast(
float, coordinator.data[CHARGER_MAX_AVAILABLE_POWER_KEY]
),
max_value_fn=lambda _: 255,
min_value_fn=lambda _: 6,
set_value_fn=lambda coordinator: coordinator.async_set_icp_current,
native_step=1,