Use platform enum (1) [A-D] (#60908)

* Use platform enum (1) [A-D]

* Fix imports

* Fix tests

* Use Platform even in tests
This commit is contained in:
Marc Mueller 2021-12-03 17:51:30 +01:00 committed by GitHub
parent ef458b237c
commit f57d42a9e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
65 changed files with 272 additions and 183 deletions

View file

@ -1,8 +1,8 @@
"""Constants for the Dexcom integration."""
from homeassistant.const import Platform
DOMAIN = "dexcom"
PLATFORMS = ["sensor"]
PLATFORMS = [Platform.SENSOR]
GLUCOSE_VALUE_ICON = "mdi:diabetes"
GLUCOSE_TREND_ICON = [