Fix formatting of mac addresses from dhcp discovery mocking in somfy_mylink (#110603)

dhcp returns addresses in lowercase without :
This commit is contained in:
J. Nick Koston 2024-02-14 16:23:02 -06:00 committed by GitHub
parent 35bcf2e9e4
commit 9105dd16e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -254,7 +254,7 @@ async def test_form_user_already_configured_from_dhcp(hass: HomeAssistant) -> No
context={"source": config_entries.SOURCE_DHCP},
data=dhcp.DhcpServiceInfo(
ip="1.1.1.1",
macaddress="AA:BB:CC:DD:EE:FF",
macaddress="aabbccddeeff",
hostname="somfy_eeff",
),
)
@ -278,7 +278,7 @@ async def test_already_configured_with_ignored(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="somfy_eeff",
),
)
@ -293,7 +293,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="somfy_eeff",
),
)