Fix minor async issues in Plex (#33785)

* Fix minor async context issues

* Annotate callback
This commit is contained in:
jjlawren authored and Paulus Schoutsen committed 2020-04-07 10:23:54 -07:00
1 parent b9336272d4
commit d92d74a14f
2 files changed
+12 -7

No files matched your search

+5 -2
View File
@@ -2,7 +2,10 @@
import logging
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect, dispatcher_send
from homeassistant.helpers.dispatcher import (
async_dispatcher_connect,
async_dispatcher_send,
)
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.event import async_call_later
@@ -66,7 +69,7 @@ class PlexSensor(Entity):
@callback
def update_plex(_):
dispatcher_send(
async_dispatcher_send(
self.hass,
PLEX_UPDATE_PLATFORMS_SIGNAL.format(self._server.machine_identifier),
)