mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-16 08:04:22 -04:00
Add all wm and td sensors to wd
This commit is contained in:
parent
7b80acb6b9
commit
155b1ff91a
7 changed files with 102 additions and 179 deletions
|
@ -14,7 +14,7 @@ from homeassistant.core import callback
|
|||
from homeassistant.helpers.entity import EntityCategory
|
||||
|
||||
from .const import DOMAIN
|
||||
from .hon import HonEntity, HonCoordinator
|
||||
from .hon import HonEntity, HonCoordinator, unique_entities
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -66,14 +66,6 @@ SELECTS = {
|
|||
translation_key="dry_levels",
|
||||
),
|
||||
),
|
||||
"WD": (
|
||||
SelectEntityDescription(
|
||||
key="startProgram.program",
|
||||
name="Program",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
translation_key="programs_wm",
|
||||
),
|
||||
),
|
||||
"OV": (
|
||||
SelectEntityDescription(
|
||||
key="startProgram.program",
|
||||
|
@ -114,6 +106,8 @@ SELECTS = {
|
|||
),
|
||||
}
|
||||
|
||||
SELECTS["WD"] = unique_entities(SELECTS["WM"], SELECTS["TD"])
|
||||
|
||||
|
||||
async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> None:
|
||||
hon: Hon = hass.data[DOMAIN][entry.unique_id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue