mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Fix formatting of mac addresses from dhcp discovery mocking in yeelight (#110616)
dhcp returns addresses in lowercase without :
This commit is contained in:
parent
c20d2d44ed
commit
79b2e465de
@ -488,7 +488,7 @@ async def test_discovered_by_homekit_and_dhcp(hass: HomeAssistant) -> None:
|
||||
DOMAIN,
|
||||
context={"source": config_entries.SOURCE_DHCP},
|
||||
data=dhcp.DhcpServiceInfo(
|
||||
ip=IP_ADDRESS, macaddress="aa:bb:cc:dd:ee:ff", hostname="mock_hostname"
|
||||
ip=IP_ADDRESS, macaddress="aabbccddeeff", hostname="mock_hostname"
|
||||
),
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
@ -502,7 +502,7 @@ async def test_discovered_by_homekit_and_dhcp(hass: HomeAssistant) -> None:
|
||||
DOMAIN,
|
||||
context={"source": config_entries.SOURCE_DHCP},
|
||||
data=dhcp.DhcpServiceInfo(
|
||||
ip=IP_ADDRESS, macaddress="00:00:00:00:00:00", hostname="mock_hostname"
|
||||
ip=IP_ADDRESS, macaddress="000000000000", hostname="mock_hostname"
|
||||
),
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
@ -518,7 +518,7 @@ async def test_discovered_by_homekit_and_dhcp(hass: HomeAssistant) -> None:
|
||||
DOMAIN,
|
||||
context={"source": config_entries.SOURCE_DHCP},
|
||||
data=dhcp.DhcpServiceInfo(
|
||||
ip="1.2.3.5", macaddress="00:00:00:00:00:01", hostname="mock_hostname"
|
||||
ip="1.2.3.5", macaddress="000000000001", hostname="mock_hostname"
|
||||
),
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
@ -532,7 +532,7 @@ async def test_discovered_by_homekit_and_dhcp(hass: HomeAssistant) -> None:
|
||||
(
|
||||
config_entries.SOURCE_DHCP,
|
||||
dhcp.DhcpServiceInfo(
|
||||
ip=IP_ADDRESS, macaddress="aa:bb:cc:dd:ee:ff", hostname="mock_hostname"
|
||||
ip=IP_ADDRESS, macaddress="aabbccddeeff", hostname="mock_hostname"
|
||||
),
|
||||
),
|
||||
(
|
||||
@ -600,7 +600,7 @@ async def test_discovered_by_dhcp_or_homekit(hass: HomeAssistant, source, data)
|
||||
(
|
||||
config_entries.SOURCE_DHCP,
|
||||
dhcp.DhcpServiceInfo(
|
||||
ip=IP_ADDRESS, macaddress="aa:bb:cc:dd:ee:ff", hostname="mock_hostname"
|
||||
ip=IP_ADDRESS, macaddress="aabbccddeeff", hostname="mock_hostname"
|
||||
),
|
||||
),
|
||||
(
|
||||
@ -824,7 +824,7 @@ async def test_discovery_adds_missing_ip_id_only(hass: HomeAssistant) -> None:
|
||||
(
|
||||
config_entries.SOURCE_DHCP,
|
||||
dhcp.DhcpServiceInfo(
|
||||
ip=IP_ADDRESS, macaddress="aa:bb:cc:dd:ee:ff", hostname="mock_hostname"
|
||||
ip=IP_ADDRESS, macaddress="aabbccddeeff", hostname="mock_hostname"
|
||||
),
|
||||
),
|
||||
(
|
||||
|
Loading…
x
Reference in New Issue
Block a user