* Add config flow to eight_sleep * simplify tests * Remove extra file * remove unused import * fix redundant code * Update homeassistant/components/eight_sleep/__init__.py Co-authored-by: J. Nick Koston <nick@koston.org> * incorporate feedback * Review comments * remove typing from tests * Fix based on changes * Fix requirements * Remove stale comment * Fix tests * Reverse the flow and force the config entry to reconnect * Review comments * Abort if import flow fails * Split import and user logic * Fix error Co-authored-by: J. Nick Koston <nick@koston.org>
16 lines
321 B
Python
16 lines
321 B
Python
"""Eight Sleep constants."""
|
|
DOMAIN = "eight_sleep"
|
|
|
|
HEAT_ENTITY = "heat"
|
|
USER_ENTITY = "user"
|
|
|
|
NAME_MAP = {
|
|
"current_sleep": "Sleep Session",
|
|
"current_sleep_fitness": "Sleep Fitness",
|
|
"last_sleep": "Previous Sleep Session",
|
|
}
|
|
|
|
SERVICE_HEAT_SET = "heat_set"
|
|
|
|
ATTR_TARGET = "target"
|
|
ATTR_DURATION = "duration"
|