mirror of
https://github.com/home-assistant/core.git
synced 2025-12-20 02:48:57 +00:00
17 lines
423 B
Python
17 lines
423 B
Python
"""Constants for the AirPatrol integration."""
|
|
|
|
from datetime import timedelta
|
|
import logging
|
|
|
|
from airpatrol.api import AirPatrolAuthenticationError, AirPatrolError
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN = "airpatrol"
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
PLATFORMS = [Platform.CLIMATE, Platform.SENSOR]
|
|
SCAN_INTERVAL = timedelta(minutes=1)
|
|
|
|
AIRPATROL_ERRORS = (AirPatrolAuthenticationError, AirPatrolError)
|