Add broken link and missing device lists to insteon configuration panel (#119715)

* Add broken link and missing device lists

* Fix incorrect import

* Add tests

* Bump pyinsteon

* Typing
This commit is contained in:
Tom Harris
2024-09-20 06:11:51 -04:00
committed by GitHub
parent 90f691fa2c
commit 7433d2eca9
9 changed files with 245 additions and 23 deletions

View File

@@ -16,7 +16,6 @@ from homeassistant.components.insteon.api.device import (
ID,
INSTEON_DEVICE_NOT_FOUND,
TYPE,
async_device_name,
)
from homeassistant.components.insteon.const import (
CONF_OVERRIDE,
@@ -24,6 +23,7 @@ from homeassistant.components.insteon.const import (
DOMAIN,
MULTIPLE,
)
from homeassistant.components.insteon.utils import async_device_name
from homeassistant.core import HomeAssistant
from homeassistant.helpers import device_registry as dr
@@ -129,10 +129,6 @@ async def test_get_ha_device_name(
name = await async_device_name(device_reg, "11.11.11")
assert name == "Device 11.11.11"
# Test no HA device but a real Insteon device
name = await async_device_name(device_reg, "22.22.22")
assert name == "Device 22.22.22 (2)"
# Test no HA or Insteon device
name = await async_device_name(device_reg, "BB.BB.BB")
assert name == ""