Fix formatting of mac addresses from dhcp discovery mocking in twinkly (#110609)

dhcp returns addresses in lowercase without :
This commit is contained in:
J. Nick Koston 2024-02-14 16:21:33 -06:00 committed by GitHub
parent 2fe246441f
commit 77a44c54dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,7 @@ async def test_dhcp_can_confirm(hass: HomeAssistant) -> None:
data=dhcp.DhcpServiceInfo(
hostname="Twinkly_XYZ",
ip="1.2.3.4",
macaddress="aa:bb:cc:dd:ee:ff",
macaddress="aabbccddeeff",
),
)
await hass.async_block_till_done()
@ -97,7 +97,7 @@ async def test_dhcp_success(hass: HomeAssistant) -> None:
data=dhcp.DhcpServiceInfo(
hostname="Twinkly_XYZ",
ip="1.2.3.4",
macaddress="aa:bb:cc:dd:ee:ff",
macaddress="aabbccddeeff",
),
)
await hass.async_block_till_done()
@ -142,7 +142,7 @@ async def test_dhcp_already_exists(hass: HomeAssistant) -> None:
data=dhcp.DhcpServiceInfo(
hostname="Twinkly_XYZ",
ip="1.2.3.4",
macaddress="aa:bb:cc:dd:ee:ff",
macaddress="aabbccddeeff",
),
)
await hass.async_block_till_done()