1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Move config and connections to Plex component (#26488)

* Move config and connections to component

* Separate imports

* Set a unique_id on sensor

* Set a platforms const

* Add SERVERS dict, hardcode to single server

* Move to debug

* Return false

* More debug

* Import at top to fix lint

* Guard against legacy setup attempts

* Refactor to add setup callback

* Review comments

* Log levels

* Return result of callback

* Store CONFIGURING in hass.data

* Set up discovery if no config data

* Use schema to set defaults

* Remove media_player options to remove entities

* Improve error handling
This commit is contained in:
jjlawren
2019-09-09 16:28:20 -05:00
committed by Martin Hjelmare
parent 3c629db096
commit 30fb4ddc98
6 changed files with 238 additions and 231 deletions

View File

@@ -1,5 +1,6 @@
"""Shared class to maintain Plex server instances."""
import logging
import plexapi.server
from requests import Session