Use HassioServiceInfo in zwave_js tests (#60863)

pull/60867/head
epenet 2021-12-02 20:57:45 +01:00 committed by GitHub
parent dff624f371
commit 2be939b45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

@ -8,17 +8,20 @@ from zwave_js_server.version import VersionInfo
from homeassistant import config_entries
from homeassistant.components import usb
from homeassistant.components.hassio.discovery import HassioServiceInfo
from homeassistant.components.hassio.handler import HassioAPIError
from homeassistant.components.zwave_js.config_flow import SERVER_VERSION_TIMEOUT, TITLE
from homeassistant.components.zwave_js.const import DOMAIN
from tests.common import MockConfigEntry
ADDON_DISCOVERY_INFO = {
"addon": "Z-Wave JS",
"host": "host1",
"port": 3001,
}
ADDON_DISCOVERY_INFO = HassioServiceInfo(
config={
"addon": "Z-Wave JS",
"host": "host1",
"port": 3001,
}
)
USB_DISCOVERY_INFO = usb.UsbServiceInfo(