mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Use new ServiceInfo location in component tests (part 2) (#136062)
This commit is contained in:
@@ -10,12 +10,12 @@ import pytest
|
||||
from rabbitair import Mode, Model, Speed
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components import zeroconf
|
||||
from homeassistant.components.rabbitair.const import DOMAIN
|
||||
from homeassistant.const import CONF_ACCESS_TOKEN, CONF_HOST, CONF_MAC
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.data_entry_flow import FlowResultType
|
||||
from homeassistant.helpers.device_registry import format_mac
|
||||
from homeassistant.helpers.service_info.zeroconf import ZeroconfServiceInfo
|
||||
|
||||
TEST_HOST = "1.1.1.1"
|
||||
TEST_NAME = "abcdef1234_123456789012345678"
|
||||
@@ -26,7 +26,7 @@ TEST_HARDWARE = "1.0.0.4"
|
||||
TEST_UNIQUE_ID = format_mac(TEST_MAC)
|
||||
TEST_TITLE = "Rabbit Air"
|
||||
|
||||
ZEROCONF_DATA = zeroconf.ZeroconfServiceInfo(
|
||||
ZEROCONF_DATA = ZeroconfServiceInfo(
|
||||
ip_address=ip_address(TEST_HOST),
|
||||
ip_addresses=[ip_address(TEST_HOST)],
|
||||
port=9009,
|
||||
|
||||
Reference in New Issue
Block a user