* Scaffold * Implement config flow * Add dymmy device tracker and TractiveClient * Add simple DeviceTracker * Add device info * Listen to tractive event and update tracker entities accordingly * Refactoring * Fix logging level * Handle connection errors * Remove sleep * Fix logging * Remove unused strings * Replace username config with email * Update aiotractive * Use debug instead of info * Cover config_flow * Update .coveragerc * Add quality scale to manifest * pylint * Update aiotractive * Do not emit SERVER_AVAILABLE, properly handle availability * Use async_get_clientsession Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net> * Add @Danielhiversen as a codeowner * Remove the title from strings and translations * Update homeassistant/components/tractive/__init__.py Co-authored-by: Franck Nijhof <frenck@frenck.nl> * Force CI * Use _attr style properties instead of methods * Remove entry_type * Remove quality scale * Make pyupgrade happy Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net> Co-authored-by: Franck Nijhof <frenck@frenck.nl>
12 lines
318 B
Python
12 lines
318 B
Python
"""Constants for the tractive integration."""
|
|
|
|
from datetime import timedelta
|
|
|
|
DOMAIN = "tractive"
|
|
|
|
RECONNECT_INTERVAL = timedelta(seconds=10)
|
|
|
|
TRACKER_HARDWARE_STATUS_UPDATED = "tracker_hardware_status_updated"
|
|
TRACKER_POSITION_UPDATED = "tracker_position_updated"
|
|
|
|
SERVER_UNAVAILABLE = "tractive_server_unavailable"
|