From 0bbe46d23674844affb77b5ffffc99e18d975bc0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 14 Feb 2024 13:59:16 -0600 Subject: [PATCH] Fix formatting of mac addresses from dhcp discovery mocking in airzone (#110559) dhcp returns addresses in lowercase without : --- tests/components/airzone/test_config_flow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/components/airzone/test_config_flow.py b/tests/components/airzone/test_config_flow.py index 10aaf07885b..cd1190c2af5 100644 --- a/tests/components/airzone/test_config_flow.py +++ b/tests/components/airzone/test_config_flow.py @@ -19,6 +19,7 @@ from homeassistant.config_entries import SOURCE_USER, ConfigEntryState from homeassistant.const import CONF_HOST, CONF_ID, CONF_PORT from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import FlowResultType +from homeassistant.helpers import device_registry as dr from .util import ( CONFIG, @@ -34,7 +35,7 @@ from tests.common import MockConfigEntry DHCP_SERVICE_INFO = dhcp.DhcpServiceInfo( hostname="airzone", ip="192.168.1.100", - macaddress="E84F25000000", + macaddress=dr.format_mac("E84F25000000").replace(":", ""), ) TEST_ID = 1