Use platform enum (3) [H-L] (#60937)

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
Marc Mueller 2021-12-06 04:10:07 +01:00 committed by GitHub
parent e0cb33a0a1
commit 40b99135e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 165 additions and 132 deletions

View file

@ -8,9 +8,18 @@ from homeassistant.const import (
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
TEMP_KELVIN,
Platform,
)
PLATFORMS = ["binary_sensor", "climate", "cover", "light", "scene", "sensor", "switch"]
PLATFORMS = [
Platform.BINARY_SENSOR,
Platform.CLIMATE,
Platform.COVER,
Platform.LIGHT,
Platform.SCENE,
Platform.SENSOR,
Platform.SWITCH,
]
DOMAIN = "lcn"
DATA_LCN = "lcn"