2019-05-13 08:16:55 +00:00
|
|
|
"""Const for TP-Link."""
|
2021-07-29 18:02:47 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2021-09-27 19:11:55 +00:00
|
|
|
from typing import Final
|
2019-05-13 08:16:55 +00:00
|
|
|
|
2021-12-04 13:10:01 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2019-05-13 08:16:55 +00:00
|
|
|
DOMAIN = "tplink"
|
2021-07-29 18:02:47 +00:00
|
|
|
|
2021-09-27 19:11:55 +00:00
|
|
|
ATTR_CURRENT_A: Final = "current_a"
|
|
|
|
ATTR_CURRENT_POWER_W: Final = "current_power_w"
|
|
|
|
ATTR_TODAY_ENERGY_KWH: Final = "today_energy_kwh"
|
|
|
|
ATTR_TOTAL_ENERGY_KWH: Final = "total_energy_kwh"
|
2021-07-29 18:02:47 +00:00
|
|
|
|
2021-09-27 19:11:55 +00:00
|
|
|
CONF_DIMMER: Final = "dimmer"
|
|
|
|
CONF_DISCOVERY: Final = "discovery"
|
|
|
|
CONF_LIGHT: Final = "light"
|
|
|
|
CONF_STRIP: Final = "strip"
|
|
|
|
CONF_SWITCH: Final = "switch"
|
|
|
|
CONF_SENSOR: Final = "sensor"
|
2021-07-29 18:02:47 +00:00
|
|
|
|
2021-12-04 13:10:01 +00:00
|
|
|
PLATFORMS: Final = [Platform.LIGHT, Platform.SENSOR, Platform.SWITCH]
|