mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Set mode for Ecovacs clean count entity (#122611)
This commit is contained in:
parent
eb3686af06
commit
62a3902de7
@ -9,7 +9,11 @@ from typing import Generic
|
|||||||
from deebot_client.capabilities import CapabilitySet
|
from deebot_client.capabilities import CapabilitySet
|
||||||
from deebot_client.events import CleanCountEvent, VolumeEvent
|
from deebot_client.events import CleanCountEvent, VolumeEvent
|
||||||
|
|
||||||
from homeassistant.components.number import NumberEntity, NumberEntityDescription
|
from homeassistant.components.number import (
|
||||||
|
NumberEntity,
|
||||||
|
NumberEntityDescription,
|
||||||
|
NumberMode,
|
||||||
|
)
|
||||||
from homeassistant.const import EntityCategory
|
from homeassistant.const import EntityCategory
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
@ -59,6 +63,7 @@ ENTITY_DESCRIPTIONS: tuple[EcovacsNumberEntityDescription, ...] = (
|
|||||||
native_min_value=1,
|
native_min_value=1,
|
||||||
native_max_value=4,
|
native_max_value=4,
|
||||||
native_step=1.0,
|
native_step=1.0,
|
||||||
|
mode=NumberMode.BOX,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user