mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Use correctly formatted MAC in dlink tests (#147871)
This commit is contained in:
parent
2cb80e083e
commit
c5873c6dd0
@ -162,7 +162,7 @@ async def test_dhcp_unique_id_assignment(
|
|||||||
"""Test dhcp initialized flow with no unique id for matching entry."""
|
"""Test dhcp initialized flow with no unique id for matching entry."""
|
||||||
dhcp_data = DhcpServiceInfo(
|
dhcp_data = DhcpServiceInfo(
|
||||||
ip="2.3.4.5",
|
ip="2.3.4.5",
|
||||||
macaddress="11:22:33:44:55:66",
|
macaddress="112233445566",
|
||||||
hostname="dsp-w215",
|
hostname="dsp-w215",
|
||||||
)
|
)
|
||||||
result = await hass.config_entries.flow.async_init(
|
result = await hass.config_entries.flow.async_init(
|
||||||
@ -177,7 +177,7 @@ async def test_dhcp_unique_id_assignment(
|
|||||||
)
|
)
|
||||||
assert result["type"] is FlowResultType.CREATE_ENTRY
|
assert result["type"] is FlowResultType.CREATE_ENTRY
|
||||||
assert result["data"] == CONF_DATA | {CONF_HOST: "2.3.4.5"}
|
assert result["data"] == CONF_DATA | {CONF_HOST: "2.3.4.5"}
|
||||||
assert result["result"].unique_id == "11:22:33:44:55:66"
|
assert result["result"].unique_id == "112233445566"
|
||||||
|
|
||||||
|
|
||||||
async def test_dhcp_changed_ip(
|
async def test_dhcp_changed_ip(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user