50fe1a8765
### Feature * Support added for V2 sock * Added tests for binary sensors ### Fix * Bumping pyowletapi to 2023.11.4 to allow V2 support * Refactoring * Corrected spelling of sock disconnected sensor
12 lines
294 B
Python
12 lines
294 B
Python
"""Constants for the Owlet Smart Sock integration."""
|
|
|
|
DOMAIN = "owlet"
|
|
|
|
CONF_OWLET_EXPIRY = "expiry"
|
|
CONF_OWLET_REFRESH = "refresh"
|
|
|
|
SUPPORTED_VERSIONS = [2, 3]
|
|
POLLING_INTERVAL = 5
|
|
MANUFACTURER = "Owlet Baby Care"
|
|
SLEEP_STATES = {0: "unknown", 1: "awake", 8: "light_sleep", 15: "deep_sleep"}
|