From d4562f4674b85c3d44aabe67612d7c16551d60ed Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 14 Feb 2024 16:22:38 -0600 Subject: [PATCH] Fix formatting of mac addresses from dhcp discovery mocking in steamist (#110605) dhcp returns addresses in lowercase without : --- tests/components/steamist/test_config_flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/steamist/test_config_flow.py b/tests/components/steamist/test_config_flow.py index 88c8c0ad697..63785b006e0 100644 --- a/tests/components/steamist/test_config_flow.py +++ b/tests/components/steamist/test_config_flow.py @@ -32,7 +32,7 @@ MODULE = "homeassistant.components.steamist" DHCP_DISCOVERY = dhcp.DhcpServiceInfo( hostname=DEVICE_HOSTNAME, ip=DEVICE_IP_ADDRESS, - macaddress=DEVICE_MAC_ADDRESS, + macaddress=DEVICE_MAC_ADDRESS.lower().replace(":", ""), ) @@ -230,7 +230,7 @@ async def test_discovered_by_discovery_and_dhcp(hass: HomeAssistant) -> None: data=dhcp.DhcpServiceInfo( hostname="any", ip=DEVICE_IP_ADDRESS, - macaddress="00:00:00:00:00:00", + macaddress="000000000000", ), ) await hass.async_block_till_done()