mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Use correctly formatted MAC in home_connect tests (#147818)
This commit is contained in:
parent
7021fe7495
commit
573325be97
@ -29,67 +29,67 @@ DHCP_DISCOVERY = (
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="balay-dishwasher-000000000000000000",
|
||||
macaddress="C8:D7:78:00:00:00",
|
||||
macaddress="c8d778000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="BOSCH-ABCDE1234-68A40E000000",
|
||||
macaddress="68:A4:0E:00:00:00",
|
||||
macaddress="68a40e000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="BOSCH-ABCDE1234-68A40E000000",
|
||||
macaddress="38:B4:D3:00:00:00",
|
||||
macaddress="38b4d3000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="bosch-dishwasher-000000000000000000",
|
||||
macaddress="68:A4:0E:00:00:00",
|
||||
macaddress="68a40e000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="bosch-dishwasher-000000000000000000",
|
||||
macaddress="38:B4:D3:00:00:00",
|
||||
macaddress="38b4d3000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="SIEMENS-ABCDE1234-68A40E000000",
|
||||
macaddress="68:A4:0E:00:00:00",
|
||||
macaddress="68a40e000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="SIEMENS-ABCDE1234-38B4D3000000",
|
||||
macaddress="38:B4:D3:00:00:00",
|
||||
macaddress="38b4d3000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="siemens-dishwasher-000000000000000000",
|
||||
macaddress="68:A4:0E:00:00:00",
|
||||
macaddress="68a40e000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="siemens-dishwasher-000000000000000000",
|
||||
macaddress="38:B4:D3:00:00:00",
|
||||
macaddress="38b4d3000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="NEFF-ABCDE1234-68A40E000000",
|
||||
macaddress="68:A4:0E:00:00:00",
|
||||
macaddress="68a40e000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="NEFF-ABCDE1234-38B4D3000000",
|
||||
macaddress="38:B4:D3:00:00:00",
|
||||
macaddress="38b4d3000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="neff-dishwasher-000000000000000000",
|
||||
macaddress="68:A4:0E:00:00:00",
|
||||
macaddress="68a40e000000",
|
||||
),
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="neff-dishwasher-000000000000000000",
|
||||
macaddress="38:B4:D3:00:00:00",
|
||||
macaddress="38b4d3000000",
|
||||
),
|
||||
)
|
||||
|
||||
@ -466,7 +466,7 @@ async def test_dhcp_flow_already_setup(
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="bosch-cookprocessor-123456789012345678",
|
||||
macaddress="c8:d7:78:00:00:00",
|
||||
macaddress="c8d778000000",
|
||||
),
|
||||
"CookProcessor",
|
||||
),
|
||||
@ -474,7 +474,7 @@ async def test_dhcp_flow_already_setup(
|
||||
DhcpServiceInfo(
|
||||
ip="1.1.1.1",
|
||||
hostname="BOSCH-HCS000000-68A40E000000",
|
||||
macaddress="68:a4:0e:00:00:00",
|
||||
macaddress="68a40e000000",
|
||||
),
|
||||
"Hob",
|
||||
),
|
||||
@ -507,5 +507,5 @@ async def test_dhcp_flow_complete_device_information(
|
||||
device = device_registry.async_get_device(identifiers={(DOMAIN, appliance.ha_id)})
|
||||
assert device
|
||||
assert device.connections == {
|
||||
(dr.CONNECTION_NETWORK_MAC, dhcp_discovery.macaddress)
|
||||
(dr.CONNECTION_NETWORK_MAC, dr.format_mac(dhcp_discovery.macaddress))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user