* Added support for livisi window sensor * Add const strings * added postpix for device_id * Remove unnecessary import * Fix imports * Fix lint errors, remove redundant device class property * Format code * Update .coveragerc * Finish basic window door sensor support * currently, only one binary sensor (wds) is supported * Remove unused imports * Fix isort issue * Simplify code as suggested in PR * rename get_device_response to get_device_state * fix ruff issue * Be more defensive in interpreting what we get from aiolivisi * Simplify coordinator * remove window sensor specific code (isOpen) * parameter order, type hinta * Update homeassistant/components/livisi/coordinator.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Update homeassistant/components/livisi/coordinator.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Update homeassistant/components/livisi/coordinator.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Update homeassistant/components/livisi/binary_sensor.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Update homeassistant/components/livisi/binary_sensor.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> * Update homeassistant/components/livisi/binary_sensor.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> --------- Co-authored-by: Tecotix <78791840+Tecotix@users.noreply.github.com> Co-authored-by: Erik Montnemery <erik@montnemery.com> Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
23 lines
614 B
Python
23 lines
614 B
Python
"""Constants for the Livisi Smart Home integration."""
|
|
import logging
|
|
from typing import Final
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
DOMAIN = "livisi"
|
|
|
|
CONF_HOST = "host"
|
|
CONF_PASSWORD: Final = "password"
|
|
AVATAR = "Avatar"
|
|
AVATAR_PORT: Final = 9090
|
|
CLASSIC_PORT: Final = 8080
|
|
DEVICE_POLLING_DELAY: Final = 60
|
|
LIVISI_STATE_CHANGE: Final = "livisi_state_change"
|
|
LIVISI_REACHABILITY_CHANGE: Final = "livisi_reachability_change"
|
|
|
|
SWITCH_DEVICE_TYPES: Final = ["ISS", "ISS2", "PSS", "PSSO"]
|
|
VRCC_DEVICE_TYPE: Final = "VRCC"
|
|
WDS_DEVICE_TYPE: Final = "WDS"
|
|
|
|
|
|
MAX_TEMPERATURE: Final = 30.0
|
|
MIN_TEMPERATURE: Final = 6.0
|