Use platform enum (6) [S] (#60944)

This commit is contained in:
Marc Mueller 2021-12-04 13:43:48 +01:00 committed by GitHub
parent ffb4b4df96
commit f7193400d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 146 additions and 81 deletions

View file

@ -1,10 +1,7 @@
"""Constants for the sia integration."""
from homeassistant.components.alarm_control_panel import (
DOMAIN as ALARM_CONTROL_PANEL_DOMAIN,
)
from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN
from homeassistant.const import Platform
PLATFORMS = [ALARM_CONTROL_PANEL_DOMAIN, BINARY_SENSOR_DOMAIN]
PLATFORMS = [Platform.ALARM_CONTROL_PANEL, Platform.BINARY_SENSOR]
DOMAIN = "sia"