Add Ecovacs button entities (#109189)

This commit is contained in:
Robert Resch 2024-01-31 09:00:43 +01:00 committed by GitHub
parent 30fdb2a8b3
commit 01df5f9cab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 430 additions and 7 deletions

View file

@ -36,7 +36,7 @@ from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import StateType
from .const import DOMAIN
from .const import DOMAIN, SUPPORTED_LIFESPANS
from .controller import EcovacsController
from .entity import (
EcovacsCapabilityEntityDescription,
@ -154,11 +154,7 @@ LIFESPAN_ENTITY_DESCRIPTIONS = tuple(
native_unit_of_measurement=PERCENTAGE,
entity_category=EntityCategory.DIAGNOSTIC,
)
for component in (
LifeSpan.BRUSH,
LifeSpan.FILTER,
LifeSpan.SIDE_BRUSH,
)
for component in SUPPORTED_LIFESPANS
)