Use DhcpServiceInfo in verisure tests (#60117)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2021-11-22 11:47:32 +01:00 committed by GitHub
parent 0df2904b89
commit bac3c1fd75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import pytest
from verisure import Error as VerisureError, LoginError as VerisureLoginError
from homeassistant import config_entries
from homeassistant.components.dhcp import MAC_ADDRESS
from homeassistant.components import dhcp
from homeassistant.components.verisure.const import (
CONF_GIID,
CONF_LOCK_CODE_DIGITS,
@ -176,7 +176,7 @@ async def test_dhcp(hass: HomeAssistant) -> None:
"""Test that DHCP discovery works."""
result = await hass.config_entries.flow.async_init(
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},
)