mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Use DhcpServiceInfo in verisure tests (#60117)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
0df2904b89
commit
bac3c1fd75
@ -7,7 +7,7 @@ import pytest
|
|||||||
from verisure import Error as VerisureError, LoginError as VerisureLoginError
|
from verisure import Error as VerisureError, LoginError as VerisureLoginError
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.components.dhcp import MAC_ADDRESS
|
from homeassistant.components import dhcp
|
||||||
from homeassistant.components.verisure.const import (
|
from homeassistant.components.verisure.const import (
|
||||||
CONF_GIID,
|
CONF_GIID,
|
||||||
CONF_LOCK_CODE_DIGITS,
|
CONF_LOCK_CODE_DIGITS,
|
||||||
@ -176,7 +176,7 @@ async def test_dhcp(hass: HomeAssistant) -> None:
|
|||||||
"""Test that DHCP discovery works."""
|
"""Test that DHCP discovery works."""
|
||||||
result = await hass.config_entries.flow.async_init(
|
result = await hass.config_entries.flow.async_init(
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
data={MAC_ADDRESS: "01:23:45:67:89:ab"},
|
data=dhcp.DhcpServiceInfo(macaddress="01:23:45:67:89:ab"),
|
||||||
context={"source": config_entries.SOURCE_DHCP},
|
context={"source": config_entries.SOURCE_DHCP},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user