2020-10-06 12:51:58 +00:00
|
|
|
"""Constants used by multiple Tasmota modules."""
|
2021-12-13 13:09:49 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2020-10-06 12:51:58 +00:00
|
|
|
CONF_DISCOVERY_PREFIX = "discovery_prefix"
|
|
|
|
|
2020-10-22 23:22:51 +00:00
|
|
|
DATA_REMOVE_DISCOVER_COMPONENT = "tasmota_discover_{}"
|
2020-10-30 08:56:41 +00:00
|
|
|
DATA_UNSUB = "tasmota_subscriptions"
|
2020-10-22 23:22:51 +00:00
|
|
|
|
2020-10-06 12:51:58 +00:00
|
|
|
DEFAULT_PREFIX = "tasmota/discovery"
|
|
|
|
|
|
|
|
DOMAIN = "tasmota"
|
2020-10-16 06:16:07 +00:00
|
|
|
|
2020-10-22 23:22:51 +00:00
|
|
|
PLATFORMS = [
|
2021-12-13 13:09:49 +00:00
|
|
|
Platform.BINARY_SENSOR,
|
|
|
|
Platform.COVER,
|
|
|
|
Platform.FAN,
|
|
|
|
Platform.LIGHT,
|
|
|
|
Platform.SENSOR,
|
|
|
|
Platform.SWITCH,
|
2020-10-22 23:22:51 +00:00
|
|
|
]
|
|
|
|
|
2020-10-16 06:16:07 +00:00
|
|
|
TASMOTA_EVENT = "tasmota_event"
|