2021-10-14 22:50:09 +00:00
|
|
|
"""Constants for the UptimeRobot integration."""
|
2021-08-04 20:20:03 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from datetime import timedelta
|
|
|
|
from logging import Logger, getLogger
|
|
|
|
from typing import Final
|
|
|
|
|
2021-12-04 13:10:01 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2021-08-04 20:20:03 +00:00
|
|
|
LOGGER: Logger = getLogger(__package__)
|
|
|
|
|
2021-08-07 18:22:02 +00:00
|
|
|
# The free plan is limited to 10 requests/minute
|
|
|
|
COORDINATOR_UPDATE_INTERVAL: timedelta = timedelta(seconds=10)
|
2021-08-04 20:20:03 +00:00
|
|
|
|
|
|
|
DOMAIN: Final = "uptimerobot"
|
2022-01-26 15:48:15 +00:00
|
|
|
PLATFORMS: Final = [Platform.BINARY_SENSOR, Platform.SENSOR]
|
2021-08-04 20:20:03 +00:00
|
|
|
|
2021-10-14 22:50:09 +00:00
|
|
|
ATTRIBUTION: Final = "Data provided by UptimeRobot"
|
2021-08-04 20:20:03 +00:00
|
|
|
|
|
|
|
ATTR_TARGET: Final = "target"
|
|
|
|
|
|
|
|
API_ATTR_OK: Final = "ok"
|