mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
Fix formatting of mac addresses from dhcp discovery mocking in guardian (#110575)
dhcp returns addresses in lowercase without :
This commit is contained in:
parent
cd0ce7d9f6
commit
efbfec0ece
@ -137,7 +137,7 @@ async def test_step_dhcp(hass: HomeAssistant, setup_guardian) -> None:
|
||||
dhcp_data = dhcp.DhcpServiceInfo(
|
||||
ip="192.168.1.100",
|
||||
hostname="GVC1-ABCD.local.",
|
||||
macaddress="aa:bb:cc:dd:ee:ff",
|
||||
macaddress="aabbccddeeff",
|
||||
)
|
||||
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
@ -163,7 +163,7 @@ async def test_step_dhcp_already_in_progress(hass: HomeAssistant) -> None:
|
||||
dhcp_data = dhcp.DhcpServiceInfo(
|
||||
ip="192.168.1.100",
|
||||
hostname="GVC1-ABCD.local.",
|
||||
macaddress="aa:bb:cc:dd:ee:ff",
|
||||
macaddress="aabbccddeeff",
|
||||
)
|
||||
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
@ -192,7 +192,7 @@ async def test_step_dhcp_already_setup_match_mac(hass: HomeAssistant) -> None:
|
||||
data=dhcp.DhcpServiceInfo(
|
||||
ip="192.168.1.100",
|
||||
hostname="GVC1-ABCD.local.",
|
||||
macaddress="aa:bb:cc:dd:ab:cd",
|
||||
macaddress="aabbccddabcd",
|
||||
),
|
||||
)
|
||||
assert result["type"] == data_entry_flow.FlowResultType.ABORT
|
||||
@ -214,7 +214,7 @@ async def test_step_dhcp_already_setup_match_ip(hass: HomeAssistant) -> None:
|
||||
data=dhcp.DhcpServiceInfo(
|
||||
ip="192.168.1.100",
|
||||
hostname="GVC1-ABCD.local.",
|
||||
macaddress="aa:bb:cc:dd:ab:cd",
|
||||
macaddress="aabbccddabcd",
|
||||
),
|
||||
)
|
||||
assert result["type"] == data_entry_flow.FlowResultType.ABORT
|
||||
|
Loading…
x
Reference in New Issue
Block a user