mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
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:
parent
532c860bf0
commit
e740e341c8
@ -71,9 +71,7 @@ NUMBER_TYPES: dict[str, WallboxNumberEntityDescription] = {
|
|||||||
CHARGER_MAX_ICP_CURRENT_KEY: WallboxNumberEntityDescription(
|
CHARGER_MAX_ICP_CURRENT_KEY: WallboxNumberEntityDescription(
|
||||||
key=CHARGER_MAX_ICP_CURRENT_KEY,
|
key=CHARGER_MAX_ICP_CURRENT_KEY,
|
||||||
translation_key="maximum_icp_current",
|
translation_key="maximum_icp_current",
|
||||||
max_value_fn=lambda coordinator: cast(
|
max_value_fn=lambda _: 255,
|
||||||
float, coordinator.data[CHARGER_MAX_AVAILABLE_POWER_KEY]
|
|
||||||
),
|
|
||||||
min_value_fn=lambda _: 6,
|
min_value_fn=lambda _: 6,
|
||||||
set_value_fn=lambda coordinator: coordinator.async_set_icp_current,
|
set_value_fn=lambda coordinator: coordinator.async_set_icp_current,
|
||||||
native_step=1,
|
native_step=1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user