Use platform enum (7) [T-Z] (#60948)

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Marc Mueller 2021-12-04 14:10:01 +01:00 committed by GitHub
parent 73c880b6c2
commit b79b35abb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 200 additions and 136 deletions

View file

@ -35,6 +35,7 @@ from homeassistant.const import (
TEMP_FAHRENHEIT,
VOLUME_CUBIC_FEET,
VOLUME_CUBIC_METERS,
Platform,
)
DOMAIN = "tuya"
@ -77,21 +78,21 @@ TUYA_SMART_APP = "tuyaSmart"
SMARTLIFE_APP = "smartlife"
PLATFORMS = [
"binary_sensor",
"button",
"camera",
"climate",
"cover",
"fan",
"humidifier",
"light",
"number",
"scene",
"select",
"sensor",
"siren",
"switch",
"vacuum",
Platform.BINARY_SENSOR,
Platform.BUTTON,
Platform.CAMERA,
Platform.CLIMATE,
Platform.COVER,
Platform.FAN,
Platform.HUMIDIFIER,
Platform.LIGHT,
Platform.NUMBER,
Platform.SCENE,
Platform.SELECT,
Platform.SENSOR,
Platform.SIREN,
Platform.SWITCH,
Platform.VACUUM,
]