1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 14:08:21 +00:00

Update ZeroconfServiceInfo in tests (n-t) (#60219)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet
2021-11-23 17:35:44 +01:00
committed by GitHub
parent 7a0ff4e2e1
commit 77dfeb062f
13 changed files with 119 additions and 22 deletions

View File

@@ -172,9 +172,11 @@ async def test_show_zerconf_form(hass: HomeAssistant) -> None:
context={"source": config_entries.SOURCE_ZEROCONF},
data=zeroconf.ZeroconfServiceInfo(
host="192.168.1.123",
port=80,
hostname="example.local.",
name="mock_name",
port=80,
properties={"uuid": "83747482", "path": "/foo/"},
type="mock_type",
),
)
assert result["type"] == "form"
@@ -487,9 +489,11 @@ async def test_duplicate_zerconf_ignored(hass: HomeAssistant) -> None:
context={"source": config_entries.SOURCE_ZEROCONF},
data=zeroconf.ZeroconfServiceInfo(
host="192.168.1.123",
port=80,
hostname="example.local.",
name="mock_name",
port=80,
properties={"uuid": "83747482", "path": "/foo/"},
type="mock_type",
),
)
assert result["type"] == "abort"