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

@ -3,6 +3,8 @@ from __future__ import annotations
from typing import Final
from homeassistant.const import Platform
DOMAIN = "tplink"
ATTR_CURRENT_A: Final = "current_a"
@ -17,4 +19,4 @@ CONF_STRIP: Final = "strip"
CONF_SWITCH: Final = "switch"
CONF_SENSOR: Final = "sensor"
PLATFORMS: Final = [CONF_LIGHT, CONF_SENSOR, CONF_SWITCH]
PLATFORMS: Final = [Platform.LIGHT, Platform.SENSOR, Platform.SWITCH]