Use Platform constants all over the place 2/3 (#62953)
This commit is contained in:
parent
c8aabc48f1
commit
d18f1cc872
14 changed files with 70 additions and 34 deletions
|
@ -1,5 +1,5 @@
|
|||
"""Constants for the Plex component."""
|
||||
from homeassistant.const import __version__
|
||||
from homeassistant.const import Platform, __version__
|
||||
|
||||
DOMAIN = "plex"
|
||||
NAME_FORMAT = "Plex ({})"
|
||||
|
@ -16,7 +16,7 @@ DEBOUNCE_TIMEOUT = 1
|
|||
DISPATCHERS = "dispatchers"
|
||||
GDM_DEBOUNCER = "gdm_debouncer"
|
||||
GDM_SCANNER = "gdm_scanner"
|
||||
PLATFORMS = frozenset(["media_player", "sensor"])
|
||||
PLATFORMS = frozenset([Platform.MEDIA_PLAYER, Platform.SENSOR])
|
||||
PLATFORMS_COMPLETED = "platforms_completed"
|
||||
PLAYER_SOURCE = "player_source"
|
||||
SERVERS = "servers"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue