* Remove global variable from sleepiq * Remove global variable from sleepiq v2 * Create constant file * Move back time constant * Update homeassistant/components/sleepiq/__init__.py Co-Authored-By: Quentame <polletquentin74@me.com> Co-authored-by: Quentame <polletquentin74@me.com>
11 lines
247 B
Python
11 lines
247 B
Python
"""Define constants for the SleepIQ component."""
|
|
|
|
DOMAIN = "sleepiq"
|
|
|
|
IS_IN_BED = "is_in_bed"
|
|
SLEEP_NUMBER = "sleep_number"
|
|
SENSOR_TYPES = {SLEEP_NUMBER: "SleepNumber", IS_IN_BED: "Is In Bed"}
|
|
|
|
LEFT = "left"
|
|
RIGHT = "right"
|
|
SIDES = [LEFT, RIGHT]
|