mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Add entity category to Wiz number entities (#76191)
This commit is contained in:
parent
b2ceb2043b
commit
31d9425e49
@ -14,6 +14,7 @@ from homeassistant.components.number import (
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.entity import EntityCategory
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .const import DOMAIN
|
||||
@ -56,6 +57,7 @@ NUMBERS: tuple[WizNumberEntityDescription, ...] = (
|
||||
value_fn=lambda device: cast(Optional[int], device.state.get_speed()),
|
||||
set_value_fn=_async_set_speed,
|
||||
required_feature="effect",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
),
|
||||
WizNumberEntityDescription(
|
||||
key="dual_head_ratio",
|
||||
@ -67,6 +69,7 @@ NUMBERS: tuple[WizNumberEntityDescription, ...] = (
|
||||
value_fn=lambda device: cast(Optional[int], device.state.get_ratio()),
|
||||
set_value_fn=_async_set_ratio,
|
||||
required_feature="dual_head",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
),
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user