1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Use enum sensor device class in HomeKit Controller (#83109)

This commit is contained in:
Franck Nijhof
2022-12-02 14:50:01 +01:00
committed by GitHub
parent 46500beefc
commit a4a80f367b
5 changed files with 92 additions and 26 deletions

View File

@@ -57,6 +57,16 @@ async def test_nanoleaf_nl55_setup(hass):
friendly_name="Nanoleaf Strip 3B32 Thread Capabilities",
unique_id="00:00:00:00:00:00_1_31_115",
entity_category=EntityCategory.DIAGNOSTIC,
capabilities={
"options": [
"border_router_capable",
"full",
"minimal",
"none",
"router_eligible",
"sleepy",
]
},
state="border_router_capable",
),
EntityTestInfo(
@@ -64,6 +74,17 @@ async def test_nanoleaf_nl55_setup(hass):
friendly_name="Nanoleaf Strip 3B32 Thread Status",
unique_id="00:00:00:00:00:00_1_31_117",
entity_category=EntityCategory.DIAGNOSTIC,
capabilities={
"options": [
"border_router",
"child",
"detached",
"disabled",
"joining",
"leader",
"router",
]
},
state="border_router",
),
],