Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants used by multiple Tasmota modules."""
2 
3 from homeassistant.const import Platform
4 
5 CONF_DISCOVERY_PREFIX = "discovery_prefix"
6 
7 DATA_REMOVE_DISCOVER_COMPONENT = "tasmota_discover_{}"
8 DATA_UNSUB = "tasmota_subscriptions"
9 
10 DEFAULT_PREFIX = "tasmota/discovery"
11 
12 DOMAIN = "tasmota"
13 
14 PLATFORMS = [
15  Platform.BINARY_SENSOR,
16  Platform.COVER,
17  Platform.FAN,
18  Platform.LIGHT,
19  Platform.SENSOR,
20  Platform.SWITCH,
21 ]
22 
23 TASMOTA_EVENT = "tasmota_event"