Add support for alarm_control_panel to MQTT Discovery. (#15689)
This commit is contained in:
1 parent
b2f4bbf93b
commit
cd6544d32a
3 files changed
+28
-1
No files matched your search
@@ -21,7 +21,8 @@ TOPIC_MATCHER = re.compile(
|
||||
|
||||
SUPPORTED_COMPONENTS = [
|
||||
'binary_sensor', 'camera', 'cover', 'fan',
|
||||
'light', 'sensor', 'switch', 'lock', 'climate']
|
||||
'light', 'sensor', 'switch', 'lock', 'climate',
|
||||
'alarm_control_panel']
|
||||
|
||||
ALLOWED_PLATFORMS = {
|
||||
'binary_sensor': ['mqtt'],
|
||||
@@ -33,6 +34,7 @@ ALLOWED_PLATFORMS = {
|
||||
'sensor': ['mqtt'],
|
||||
'switch': ['mqtt'],
|
||||
'climate': ['mqtt'],
|
||||
'alarm_control_panel': ['mqtt'],
|
||||
}
|
||||
|
||||
ALREADY_DISCOVERED = 'mqtt_discovered_components'
|
||||
|
||||
Reference in new issue
Block a user