* Add support for Notion Home Monitoring * Updated coverage * Removed auto-generated translations * Stale docstrings * Corrected hardware version * Fixed binary sensor representation * Cleanup and update protection * Updated log message * Cleaned up is_on * Updated docstring * Modified which data is updated during async_update * Added more checks during update * More cleanup * Fixed unhandled exception * Owner-requested changes (round 1) * Fixed incorrect scan interval retrieval * Ugh * Removed unnecessary import * Simplified everything via dict lookups * Ensure bridges are properly registered * Fixed tests * Added catch for invalid credentials * Ensure bridge ID is updated as necessary * Updated method name * Simplified bridge update * Add support for updating bridge via_device_id * Device update guard clause * Removed excess whitespace * Whitespace * Owner comments * Member comments
13 lines
267 B
Python
13 lines
267 B
Python
"""Define constants for the Notion integration."""
|
|
from datetime import timedelta
|
|
|
|
DOMAIN = 'notion'
|
|
|
|
DEFAULT_SCAN_INTERVAL = timedelta(minutes=1)
|
|
|
|
DATA_CLIENT = 'client'
|
|
|
|
TOPIC_DATA_UPDATE = 'data_update'
|
|
|
|
TYPE_BINARY_SENSOR = 'binary_sensor'
|
|
TYPE_SENSOR = 'sensor'
|