From 2fe246441f3a39390fa11a737e093bd4f0453a95 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 14 Feb 2024 16:21:19 -0600 Subject: [PATCH] Fix formatting of mac addresses from dhcp discovery mocking in unifiprotect (#110610) dhcp returns addresses in lowercase without : --- tests/components/unifiprotect/test_config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/unifiprotect/test_config_flow.py b/tests/components/unifiprotect/test_config_flow.py index 6af636ef448..7d907a6ba99 100644 --- a/tests/components/unifiprotect/test_config_flow.py +++ b/tests/components/unifiprotect/test_config_flow.py @@ -38,7 +38,7 @@ from tests.common import MockConfigEntry DHCP_DISCOVERY = dhcp.DhcpServiceInfo( hostname=DEVICE_HOSTNAME, ip=DEVICE_IP_ADDRESS, - macaddress=DEVICE_MAC_ADDRESS, + macaddress=DEVICE_MAC_ADDRESS.lower().replace(":", ""), ) SSDP_DISCOVERY = ( ssdp.SsdpServiceInfo(