Home Assistant Unofficial Reference
2024.12.1
const.py
Go to the documentation of this file.
1
"""Constants for the UptimeRobot integration."""
2
3
from
__future__
import
annotations
4
5
from
datetime
import
timedelta
6
from
logging
import
Logger, getLogger
7
from
typing
import
Final
8
9
from
homeassistant.const
import
Platform
10
11
LOGGER: Logger = getLogger(__package__)
12
13
# The free plan is limited to 10 requests/minute
14
COORDINATOR_UPDATE_INTERVAL: timedelta =
timedelta
(seconds=10)
15
16
DOMAIN: Final =
"uptimerobot"
17
PLATFORMS: Final = [Platform.BINARY_SENSOR, Platform.SENSOR, Platform.SWITCH]
18
19
ATTRIBUTION: Final =
"Data provided by UptimeRobot"
20
21
ATTR_TARGET: Final =
"target"
22
23
API_ATTR_OK: Final =
"ok"
homeassistant.components.uptimerobot.const.timedelta
timedelta
Definition:
const.py:14
homeassistant.const
Definition:
const.py:1
core
homeassistant
components
uptimerobot
const.py
Generated by
1.9.1