Use platform enum (2) [E-G] (#60933)

This commit is contained in:
Marc Mueller 2021-12-04 13:26:40 +01:00 committed by GitHub
parent 79cd281c48
commit cd1b923e16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 150 additions and 91 deletions

View file

@ -14,6 +14,7 @@ from homeassistant.components.weather import (
ATTR_CONDITION_SUNNY,
ATTR_CONDITION_WINDY,
)
from homeassistant.const import Platform
_LOGGER = logging.getLogger(__package__)
@ -37,7 +38,13 @@ ECOBEE_MODEL_TO_NAME = {
"vulcanSmart": "ecobee4 Smart",
}
PLATFORMS = ["binary_sensor", "climate", "humidifier", "sensor", "weather"]
PLATFORMS = [
Platform.BINARY_SENSOR,
Platform.CLIMATE,
Platform.HUMIDIFIER,
Platform.SENSOR,
Platform.WEATHER,
]
MANUFACTURER = "ecobee"