From efbfec0ece41aa5e8f959176d6957f22b735d976 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 14 Feb 2024 13:54:16 -0600 Subject: [PATCH] Fix formatting of mac addresses from dhcp discovery mocking in guardian (#110575) dhcp returns addresses in lowercase without : --- tests/components/guardian/test_config_flow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/components/guardian/test_config_flow.py b/tests/components/guardian/test_config_flow.py index 3d0be516dea..e52d14fb6a0 100644 --- a/tests/components/guardian/test_config_flow.py +++ b/tests/components/guardian/test_config_flow.py @@ -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