diff --git a/tests/components/flux_led/__init__.py b/tests/components/flux_led/__init__.py index 34f592110d0..80f072328d6 100644 --- a/tests/components/flux_led/__init__.py +++ b/tests/components/flux_led/__init__.py @@ -28,6 +28,7 @@ from homeassistant.components.flux_led.const import DOMAIN from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, CONF_NAME from homeassistant.core import HomeAssistant +from homeassistant.helpers.device_registry import format_mac from tests.common import MockConfigEntry @@ -50,7 +51,7 @@ DEFAULT_ENTRY_TITLE = f"{MODEL_DESCRIPTION} {SHORT_MAC_ADDRESS}" DHCP_DISCOVERY = dhcp.DhcpServiceInfo( hostname=MODEL, ip=IP_ADDRESS, - macaddress=MAC_ADDRESS, + macaddress=format_mac(MAC_ADDRESS).replace(":", ""), ) FLUX_DISCOVERY_PARTIAL = FluxLEDDiscovery( ipaddr=IP_ADDRESS, diff --git a/tests/components/flux_led/test_config_flow.py b/tests/components/flux_led/test_config_flow.py index f77233f7a3f..008661303f1 100644 --- a/tests/components/flux_led/test_config_flow.py +++ b/tests/components/flux_led/test_config_flow.py @@ -402,7 +402,7 @@ async def test_discovered_by_discovery_and_dhcp(hass: HomeAssistant) -> None: data=dhcp.DhcpServiceInfo( hostname="any", ip=IP_ADDRESS, - macaddress="00:00:00:00:00:00", + macaddress="000000000000", ), ) await hass.async_block_till_done()