Add type hints to plex data (#89221)

* Add type hints to plex data

* Rename method
This commit is contained in:
epenet 2023-03-17 22:14:24 +01:00 committed by GitHub
parent 377dff5ee4
commit 469dbec089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 98 additions and 51 deletions

View file

@ -1,5 +1,6 @@
"""Constants for the Plex component."""
from datetime import timedelta
from typing import Final
from homeassistant.const import Platform, __version__
@ -16,14 +17,14 @@ PLEXTV_THROTTLE = 60
CLIENT_SCAN_INTERVAL = timedelta(minutes=10)
DEBOUNCE_TIMEOUT = 1
DISPATCHERS = "dispatchers"
GDM_DEBOUNCER = "gdm_debouncer"
GDM_SCANNER = "gdm_scanner"
DISPATCHERS: Final = "dispatchers"
GDM_DEBOUNCER: Final = "gdm_debouncer"
GDM_SCANNER: Final = "gdm_scanner"
PLATFORMS = frozenset([Platform.BUTTON, Platform.MEDIA_PLAYER, Platform.SENSOR])
PLATFORMS_COMPLETED = "platforms_completed"
PLATFORMS_COMPLETED: Final = "platforms_completed"
PLAYER_SOURCE = "player_source"
SERVERS = "servers"
WEBSOCKETS = "websockets"
SERVERS: Final = "servers"
WEBSOCKETS: Final = "websockets"
PLEX_SERVER_CONFIG = "server_config"