Use Platform constants all over the place 2/3 (#62953)

This commit is contained in:
Sebastian Lövdahl 2021-12-28 22:23:07 +02:00 committed by GitHub
parent c8aabc48f1
commit d18f1cc872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 70 additions and 34 deletions

View file

@ -32,6 +32,7 @@ from homeassistant.const import (
CONF_VALUE_TEMPLATE,
EVENT_HOMEASSISTANT_STARTED,
EVENT_HOMEASSISTANT_STOP,
Platform,
)
from homeassistant.core import (
CoreState,
@ -127,20 +128,20 @@ DISCOVERY_COOLDOWN = 2
TIMEOUT_ACK = 10
PLATFORMS = [
"alarm_control_panel",
"binary_sensor",
"camera",
"climate",
"cover",
"fan",
"humidifier",
"light",
"lock",
"number",
"scene",
"sensor",
"switch",
"vacuum",
Platform.ALARM_CONTROL_PANEL,
Platform.BINARY_SENSOR,
Platform.CAMERA,
Platform.CLIMATE,
Platform.COVER,
Platform.FAN,
Platform.HUMIDIFIER,
Platform.LIGHT,
Platform.LOCK,
Platform.NUMBER,
Platform.SCENE,
Platform.SENSOR,
Platform.SWITCH,
Platform.VACUUM,
]