mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Use correctly formatted MAC in bond tests (#147870)
This commit is contained in:
parent
3f9590b03b
commit
073a467fb2
@ -319,7 +319,7 @@ async def test_dhcp_discovery(hass: HomeAssistant) -> None:
|
|||||||
data=DhcpServiceInfo(
|
data=DhcpServiceInfo(
|
||||||
ip="127.0.0.1",
|
ip="127.0.0.1",
|
||||||
hostname="Bond-KVPRBDJ45842",
|
hostname="Bond-KVPRBDJ45842",
|
||||||
macaddress=format_mac("3c:6a:2c:1c:8c:80"),
|
macaddress=format_mac("3c6a2c1c8c80"),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
assert result["type"] is FlowResultType.FORM
|
assert result["type"] is FlowResultType.FORM
|
||||||
@ -365,7 +365,7 @@ async def test_dhcp_discovery_already_exists(hass: HomeAssistant) -> None:
|
|||||||
data=DhcpServiceInfo(
|
data=DhcpServiceInfo(
|
||||||
ip="127.0.0.1",
|
ip="127.0.0.1",
|
||||||
hostname="Bond-KVPRBDJ45842".lower(),
|
hostname="Bond-KVPRBDJ45842".lower(),
|
||||||
macaddress=format_mac("3c:6a:2c:1c:8c:80"),
|
macaddress=format_mac("3c6a2c1c8c80"),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
assert result["type"] is FlowResultType.ABORT
|
assert result["type"] is FlowResultType.ABORT
|
||||||
@ -382,7 +382,7 @@ async def test_dhcp_discovery_short_name(hass: HomeAssistant) -> None:
|
|||||||
data=DhcpServiceInfo(
|
data=DhcpServiceInfo(
|
||||||
ip="127.0.0.1",
|
ip="127.0.0.1",
|
||||||
hostname="Bond-KVPRBDJ",
|
hostname="Bond-KVPRBDJ",
|
||||||
macaddress=format_mac("3c:6a:2c:1c:8c:80"),
|
macaddress=format_mac("3c6a2c1c8c80"),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
assert result["type"] is FlowResultType.FORM
|
assert result["type"] is FlowResultType.FORM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user