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

dhcp returns addresses in lowercase without :
pull/110622/head
J. Nick Koston 2024-02-14 16:22:51 -06:00 committed by GitHub
parent d4562f4674
commit 35bcf2e9e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

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