Fix formatting of mac addresses from dhcp discovery mocking in squeezebox (#110604)

dhcp returns addresses in lowercase without :
This commit is contained in:
J. Nick Koston
2024-02-14 16:22:51 -06:00
committed by GitHub
parent d4562f4674
commit 35bcf2e9e4

View File

@@ -217,7 +217,7 @@ async def test_dhcp_discovery(hass: HomeAssistant) -> None:
context={"source": config_entries.SOURCE_DHCP},
data=dhcp.DhcpServiceInfo(
ip="1.1.1.1",
macaddress="AA:BB:CC:DD:EE:FF",
macaddress="aabbccddeeff",
hostname="any",
),
)
@@ -236,7 +236,7 @@ async def test_dhcp_discovery_no_server_found(hass: HomeAssistant) -> None:
context={"source": config_entries.SOURCE_DHCP},
data=dhcp.DhcpServiceInfo(
ip="1.1.1.1",
macaddress="AA:BB:CC:DD:EE:FF",
macaddress="aabbccddeeff",
hostname="any",
),
)
@@ -255,7 +255,7 @@ async def test_dhcp_discovery_existing_player(hass: HomeAssistant) -> None:
context={"source": config_entries.SOURCE_DHCP},
data=dhcp.DhcpServiceInfo(
ip="1.1.1.1",
macaddress="AA:BB:CC:DD:EE:FF",
macaddress="aabbccddeeff",
hostname="any",
),
)