Wallbox Change Minimum Value Charging Current (#104553)

This commit is contained in:
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 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

View File

@ -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(