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
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue