mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Fix formatting of mac addresses from dhcp discovery mocking in twinkly (#110609)
dhcp returns addresses in lowercase without :
This commit is contained in:
parent
2fe246441f
commit
77a44c54dd
@ -76,7 +76,7 @@ async def test_dhcp_can_confirm(hass: HomeAssistant) -> None:
|
|||||||
data=dhcp.DhcpServiceInfo(
|
data=dhcp.DhcpServiceInfo(
|
||||||
hostname="Twinkly_XYZ",
|
hostname="Twinkly_XYZ",
|
||||||
ip="1.2.3.4",
|
ip="1.2.3.4",
|
||||||
macaddress="aa:bb:cc:dd:ee:ff",
|
macaddress="aabbccddeeff",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
@ -97,7 +97,7 @@ async def test_dhcp_success(hass: HomeAssistant) -> None:
|
|||||||
data=dhcp.DhcpServiceInfo(
|
data=dhcp.DhcpServiceInfo(
|
||||||
hostname="Twinkly_XYZ",
|
hostname="Twinkly_XYZ",
|
||||||
ip="1.2.3.4",
|
ip="1.2.3.4",
|
||||||
macaddress="aa:bb:cc:dd:ee:ff",
|
macaddress="aabbccddeeff",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
@ -142,7 +142,7 @@ async def test_dhcp_already_exists(hass: HomeAssistant) -> None:
|
|||||||
data=dhcp.DhcpServiceInfo(
|
data=dhcp.DhcpServiceInfo(
|
||||||
hostname="Twinkly_XYZ",
|
hostname="Twinkly_XYZ",
|
||||||
ip="1.2.3.4",
|
ip="1.2.3.4",
|
||||||
macaddress="aa:bb:cc:dd:ee:ff",
|
macaddress="aabbccddeeff",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user