Skip to content

Commit

Permalink
Wallbox Change Minimum Value Charging Current (home-assistant#104553)
Browse files Browse the repository at this point in the history
  • Loading branch information
hesselonline authored Nov 26, 2023
1 parent 06b7424 commit 53e78cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/wallbox/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/components/wallbox/test_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 53e78cb

Please sign in to comment.