mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Use UsbServiceInfo in zwave-js (#60267)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import pytest
|
||||
from zwave_js_server.version import VersionInfo
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components import usb
|
||||
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
|
||||
@@ -20,32 +21,32 @@ ADDON_DISCOVERY_INFO = {
|
||||
}
|
||||
|
||||
|
||||
USB_DISCOVERY_INFO = {
|
||||
"device": "/dev/zwave",
|
||||
"pid": "AAAA",
|
||||
"vid": "AAAA",
|
||||
"serial_number": "1234",
|
||||
"description": "zwave radio",
|
||||
"manufacturer": "test",
|
||||
}
|
||||
USB_DISCOVERY_INFO = usb.UsbServiceInfo(
|
||||
device="/dev/zwave",
|
||||
pid="AAAA",
|
||||
vid="AAAA",
|
||||
serial_number="1234",
|
||||
description="zwave radio",
|
||||
manufacturer="test",
|
||||
)
|
||||
|
||||
NORTEK_ZIGBEE_DISCOVERY_INFO = {
|
||||
"device": "/dev/zigbee",
|
||||
"pid": "8A2A",
|
||||
"vid": "10C4",
|
||||
"serial_number": "1234",
|
||||
"description": "nortek zigbee radio",
|
||||
"manufacturer": "nortek",
|
||||
}
|
||||
NORTEK_ZIGBEE_DISCOVERY_INFO = usb.UsbServiceInfo(
|
||||
device="/dev/zigbee",
|
||||
pid="8A2A",
|
||||
vid="10C4",
|
||||
serial_number="1234",
|
||||
description="nortek zigbee radio",
|
||||
manufacturer="nortek",
|
||||
)
|
||||
|
||||
CP2652_ZIGBEE_DISCOVERY_INFO = {
|
||||
"device": "/dev/zigbee",
|
||||
"pid": "EA60",
|
||||
"vid": "10C4",
|
||||
"serial_number": "",
|
||||
"description": "cp2652",
|
||||
"manufacturer": "generic",
|
||||
}
|
||||
CP2652_ZIGBEE_DISCOVERY_INFO = usb.UsbServiceInfo(
|
||||
device="/dev/zigbee",
|
||||
pid="EA60",
|
||||
vid="10C4",
|
||||
serial_number="",
|
||||
description="cp2652",
|
||||
manufacturer="generic",
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(name="setup_entry")
|
||||
|
||||
Reference in New Issue
Block a user