Skip to content

Commit

Permalink
Add type assertion for port in test_full_user_flow
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas committed Nov 8, 2024
1 parent cf7217d commit 09f8ee2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/components/p1_monitor/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async def test_full_user_flow(hass: HomeAssistant) -> None:
assert result2.get("type") is FlowResultType.CREATE_ENTRY
assert result2.get("title") == "P1 Monitor"
assert result2.get("data") == {CONF_HOST: "example.com", CONF_PORT: 80}
assert isinstance(result2["data"][CONF_PORT], int)

assert len(mock_setup_entry.mock_calls) == 1
assert len(mock_p1monitor.mock_calls) == 1
Expand Down

0 comments on commit 09f8ee2

Please sign in to comment.