mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +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
88e3dcccda
commit
1382a001e3
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user