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

@ -8,6 +8,7 @@ from homeassistant.const import (
CONCENTRATION_PARTS_PER_BILLION,
CONCENTRATION_PARTS_PER_MILLION,
PERCENTAGE,
Platform,
)
DOMAIN = "kaiterra"
@ -71,4 +72,4 @@ DEFAULT_AQI_STANDARD = "us"
DEFAULT_PREFERRED_UNIT = []
DEFAULT_SCAN_INTERVAL = timedelta(seconds=30)
PLATFORMS = ["sensor", "air_quality"]
PLATFORMS = [Platform.SENSOR, Platform.AIR_QUALITY]