mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Use DhcpServiceInfo in goalzero tests (#59969)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
01fea8bbdd
commit
e7013f468c
@ -1,7 +1,7 @@
|
|||||||
"""Tests for the Goal Zero Yeti integration."""
|
"""Tests for the Goal Zero Yeti integration."""
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
from homeassistant.components.dhcp import HOSTNAME, IP_ADDRESS, MAC_ADDRESS
|
from homeassistant.components import dhcp
|
||||||
from homeassistant.components.goalzero import DOMAIN
|
from homeassistant.components.goalzero import DOMAIN
|
||||||
from homeassistant.components.goalzero.const import DEFAULT_NAME
|
from homeassistant.components.goalzero.const import DEFAULT_NAME
|
||||||
from homeassistant.const import CONF_HOST, CONF_NAME
|
from homeassistant.const import CONF_HOST, CONF_NAME
|
||||||
@ -20,11 +20,11 @@ CONF_DATA = {
|
|||||||
CONF_NAME: DEFAULT_NAME,
|
CONF_NAME: DEFAULT_NAME,
|
||||||
}
|
}
|
||||||
|
|
||||||
CONF_DHCP_FLOW = {
|
CONF_DHCP_FLOW = dhcp.DhcpServiceInfo(
|
||||||
IP_ADDRESS: HOST,
|
ip=HOST,
|
||||||
MAC_ADDRESS: format_mac("AA:BB:CC:DD:EE:FF"),
|
macaddress=format_mac("AA:BB:CC:DD:EE:FF"),
|
||||||
HOSTNAME: "yeti",
|
hostname="yeti",
|
||||||
}
|
)
|
||||||
|
|
||||||
|
|
||||||
def create_entry(hass: HomeAssistant):
|
def create_entry(hass: HomeAssistant):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user