mirror of
https://github.com/home-assistant/core.git
synced 2025-05-04 05:59:16 +00:00

* Rework integration init * Suggested chancge * Use Trackables class * Use try..except for trackable_objects * Check that the pet has tracker linked
20 lines
526 B
Python
20 lines
526 B
Python
"""Constants for the tractive integration."""
|
|
|
|
from datetime import timedelta
|
|
|
|
DOMAIN = "tractive"
|
|
|
|
RECONNECT_INTERVAL = timedelta(seconds=10)
|
|
|
|
ATTR_DAILY_GOAL = "daily_goal"
|
|
ATTR_MINUTES_ACTIVE = "minutes_active"
|
|
|
|
CLIENT = "client"
|
|
TRACKABLES = "trackables"
|
|
|
|
TRACKER_HARDWARE_STATUS_UPDATED = f"{DOMAIN}_tracker_hardware_status_updated"
|
|
TRACKER_POSITION_UPDATED = f"{DOMAIN}_tracker_position_updated"
|
|
TRACKER_ACTIVITY_STATUS_UPDATED = f"{DOMAIN}_tracker_activity_updated"
|
|
|
|
SERVER_UNAVAILABLE = f"{DOMAIN}_server_unavailable"
|