Add Plex scan_clients button, enable autoscan (#67055)

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
This commit is contained in:
jjlawren 2022-02-22 18:34:48 -06:00 committed by GitHub
parent d5a2381f07
commit 1658d530e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 129 additions and 2 deletions

View file

@ -1,4 +1,6 @@
"""Constants for the Plex component."""
from datetime import timedelta
from homeassistant.const import Platform, __version__
DOMAIN = "plex"
@ -12,11 +14,12 @@ DEFAULT_VERIFY_SSL = True
PLEXTV_THROTTLE = 60
CLIENT_SCAN_INTERVAL = timedelta(minutes=10)
DEBOUNCE_TIMEOUT = 1
DISPATCHERS = "dispatchers"
GDM_DEBOUNCER = "gdm_debouncer"
GDM_SCANNER = "gdm_scanner"
PLATFORMS = frozenset([Platform.MEDIA_PLAYER, Platform.SENSOR])
PLATFORMS = frozenset([Platform.BUTTON, Platform.MEDIA_PLAYER, Platform.SENSOR])
PLATFORMS_COMPLETED = "platforms_completed"
PLAYER_SOURCE = "player_source"
SERVERS = "servers"