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:
parent
73c880b6c2
commit
b79b35abb5
45 changed files with 200 additions and 136 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue