Use correctly formatted MAC in dlink tests (#147871)

This commit is contained in:
epenet 2025-07-01 14:40:12 +02:00 committed by GitHub
parent 2cb80e083e
commit c5873c6dd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,7 +162,7 @@ async def test_dhcp_unique_id_assignment(
"""Test dhcp initialized flow with no unique id for matching entry."""
dhcp_data = DhcpServiceInfo(
ip="2.3.4.5",
macaddress="11:22:33:44:55:66",
macaddress="112233445566",
hostname="dsp-w215",
)
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["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(