Wallbox Change Minimum Value Charging Current (#104553)

pull/104565/head
Hessel 2023-11-26 20:40:27 +01:00 committed by GitHub
parent 06b74249f7
commit 53e78cb017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ def min_charging_current_value(coordinator: WallboxCoordinator) -> float:
in BIDIRECTIONAL_MODEL_PREFIXES
):
return cast(float, (coordinator.data[CHARGER_MAX_AVAILABLE_POWER_KEY] * -1))
return 0
return 6
@dataclass

View File

@ -43,7 +43,7 @@ async def test_wallbox_number_class(
status_code=200,
)
state = hass.states.get(MOCK_NUMBER_ENTITY_ID)
assert state.attributes["min"] == 0
assert state.attributes["min"] == 6
assert state.attributes["max"] == 25
await hass.services.async_call(