Add Plex service to refresh a library (#39094)

* Add Plex service to refresh a library

* Clean up rebase leftovers

* Re-run black

* Fix docstring

Co-authored-by: Charles Garwood <cgarwood@newdealmultimedia.com>

Co-authored-by: Charles Garwood <cgarwood@newdealmultimedia.com>
This commit is contained in:
jjlawren 2020-09-02 13:56:41 -05:00 committed by GitHub
parent 97602a127a
commit cb1cf2238d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 195 additions and 2 deletions

View file

@ -43,6 +43,7 @@ from .const import (
)
from .errors import ShouldUpdateConfigEntry
from .server import PlexServer
from .services import async_setup_services
_LOGGER = logging.getLogger(__package__)
@ -54,6 +55,8 @@ async def async_setup(hass, config):
{SERVERS: {}, DISPATCHERS: {}, WEBSOCKETS: {}, PLATFORMS_COMPLETED: {}},
)
await async_setup_services(hass)
return True