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

@ -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"