mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00

* working test_init * update fixtures to be compliant with new schema * test_storage is now working * all tests passing * bump client to 1.0.1b0 * test commit (working tests) * use only id (not e.g. zoneId), use StrEnums * mypy, lint * remove deprecated module * remove waffle * improve typing of asserts * broker is now coordinator * WIP - test failing * rename class * remove unneeded async_dispatcher_send() * restore missing code * harden test * bugfix failing test * don't capture blind except * shrink log messages * doctweak * rationalize asserts * remove unneeded listerner * refactor setup * bump client to 1.0.2b0 * bump client to 1.0.2b1 * refactor extended state attrs * pass UpdateFailed to _async_refresh() * Update homeassistant/components/evohome/entity.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/evohome/entity.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * not even lint * undo not even lint * remove unused logger * restore old namespace for e_s_a * minimize diff * doctweak * remove unused method * lint * DUC now working * restore old camelCase keynames * tweak * small tweak to _handle_coordinator_update() * Update homeassistant/components/evohome/coordinator.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * add test of coordinator * bump client to 1.0.2 --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
38 lines
897 B
Python
38 lines
897 B
Python
"""The constants of the Evohome integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from datetime import timedelta
|
|
from enum import StrEnum, unique
|
|
from typing import Final
|
|
|
|
DOMAIN: Final = "evohome"
|
|
|
|
STORAGE_VER: Final = 1
|
|
STORAGE_KEY: Final = DOMAIN
|
|
|
|
CONF_LOCATION_IDX: Final = "location_idx"
|
|
|
|
USER_DATA: Final = "user_data"
|
|
|
|
SCAN_INTERVAL_DEFAULT: Final = timedelta(seconds=300)
|
|
SCAN_INTERVAL_MINIMUM: Final = timedelta(seconds=60)
|
|
|
|
ATTR_SYSTEM_MODE: Final = "mode"
|
|
ATTR_DURATION_DAYS: Final = "period"
|
|
ATTR_DURATION_HOURS: Final = "duration"
|
|
|
|
ATTR_ZONE_TEMP: Final = "setpoint"
|
|
ATTR_DURATION_UNTIL: Final = "duration"
|
|
|
|
|
|
@unique
|
|
class EvoService(StrEnum):
|
|
"""The Evohome services."""
|
|
|
|
REFRESH_SYSTEM = "refresh_system"
|
|
SET_SYSTEM_MODE = "set_system_mode"
|
|
RESET_SYSTEM = "reset_system"
|
|
SET_ZONE_OVERRIDE = "set_zone_override"
|
|
RESET_ZONE_OVERRIDE = "clear_zone_override"
|