mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Wallbox Change Minimum Value Charging Current (#104553)
This commit is contained in:
parent
06b74249f7
commit
53e78cb017
@ -35,7 +35,7 @@ def min_charging_current_value(coordinator: WallboxCoordinator) -> float:
|
|||||||
in BIDIRECTIONAL_MODEL_PREFIXES
|
in BIDIRECTIONAL_MODEL_PREFIXES
|
||||||
):
|
):
|
||||||
return cast(float, (coordinator.data[CHARGER_MAX_AVAILABLE_POWER_KEY] * -1))
|
return cast(float, (coordinator.data[CHARGER_MAX_AVAILABLE_POWER_KEY] * -1))
|
||||||
return 0
|
return 6
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
@ -43,7 +43,7 @@ async def test_wallbox_number_class(
|
|||||||
status_code=200,
|
status_code=200,
|
||||||
)
|
)
|
||||||
state = hass.states.get(MOCK_NUMBER_ENTITY_ID)
|
state = hass.states.get(MOCK_NUMBER_ENTITY_ID)
|
||||||
assert state.attributes["min"] == 0
|
assert state.attributes["min"] == 6
|
||||||
assert state.attributes["max"] == 25
|
assert state.attributes["max"] == 25
|
||||||
|
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user