parent
83dd1af6d2
commit
095b04caf9
|
@ -15,6 +15,8 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
|||
from . import HomeeConfigEntry
|
||||
from .entity import HomeeEntity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
BUTTON_DESCRIPTIONS: dict[AttributeType, ButtonEntityDescription] = {
|
||||
AttributeType.AUTOMATIC_MODE_IMPULSE: ButtonEntityDescription(key="automatic_mode"),
|
||||
AttributeType.BRIEFLY_OPEN_IMPULSE: ButtonEntityDescription(key="briefly_open"),
|
||||
|
|
|
@ -21,6 +21,8 @@ from .entity import HomeeNodeEntity
|
|||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
OPEN_CLOSE_ATTRIBUTES = [
|
||||
AttributeType.OPEN_CLOSE,
|
||||
AttributeType.SLAT_ROTATION_IMPULSE,
|
||||
|
|
|
@ -32,6 +32,8 @@ LIGHT_ATTRIBUTES = [
|
|||
AttributeType.DIMMING_LEVEL,
|
||||
]
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
def is_light_node(node: HomeeNode) -> bool:
|
||||
"""Determine if a node is controllable as a homee light based on its profile and attributes."""
|
||||
|
|
|
@ -16,6 +16,8 @@ from . import HomeeConfigEntry
|
|||
from .const import HOMEE_UNIT_TO_HA_UNIT
|
||||
from .entity import HomeeEntity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
NUMBER_DESCRIPTIONS = {
|
||||
AttributeType.DOWN_POSITION: NumberEntityDescription(
|
||||
key="down_position",
|
||||
|
|
|
@ -35,7 +35,7 @@ rules:
|
|||
entity-unavailable: done
|
||||
integration-owner: done
|
||||
log-when-unavailable: done
|
||||
parallel-updates: todo
|
||||
parallel-updates: done
|
||||
reauthentication-flow: todo
|
||||
test-coverage: todo
|
||||
|
||||
|
|
|
@ -27,6 +27,8 @@ from .const import (
|
|||
from .entity import HomeeEntity, HomeeNodeEntity
|
||||
from .helpers import get_name_for_enum
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
def get_open_close_value(attribute: HomeeAttribute) -> str | None:
|
||||
"""Return the open/close value."""
|
||||
|
|
|
@ -20,6 +20,8 @@ from . import HomeeConfigEntry
|
|||
from .const import CLIMATE_PROFILES, LIGHT_PROFILES
|
||||
from .entity import HomeeEntity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
def get_device_class(
|
||||
attribute: HomeeAttribute, config_entry: HomeeConfigEntry
|
||||
|
|
|
@ -15,6 +15,8 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
|||
from . import HomeeConfigEntry
|
||||
from .entity import HomeeEntity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
VALVE_DESCRIPTIONS = {
|
||||
AttributeType.CURRENT_VALVE_POSITION: ValveEntityDescription(
|
||||
key="valve_position",
|
||||
|
|
Loading…
Reference in New Issue