mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-13 22:54:23 -04:00
Merge branch 'main' into refactor
This commit is contained in:
commit
0d43eeff3d
35 changed files with 847 additions and 127 deletions
|
@ -5,7 +5,7 @@ from typing import Any
|
|||
|
||||
from homeassistant.components.switch import SwitchEntityDescription, SwitchEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import EntityCategory
|
||||
from homeassistant.helpers.entity import EntityCategory
|
||||
from homeassistant.core import callback
|
||||
from pyhon.parameter.base import HonParameter
|
||||
from pyhon.parameter.range import HonParameterRange
|
||||
|
@ -333,6 +333,16 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = {
|
|||
key="lightStatus", name="Light", icon="mdi:lightbulb"
|
||||
),
|
||||
),
|
||||
"AP": (
|
||||
HonSwitchEntityDescription(
|
||||
key="touchToneStatus",
|
||||
name="Touch Tone",
|
||||
),
|
||||
HonSwitchEntityDescription(
|
||||
key="lockStatus",
|
||||
name="Lock Status",
|
||||
),
|
||||
),
|
||||
}
|
||||
|
||||
SWITCHES["WD"] = unique_entities(SWITCHES["WD"], SWITCHES["WM"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue