Fix minor async issues in Plex (#33785)
* Fix minor async context issues * Annotate callback
This commit is contained in:
1 parent
b9336272d4
commit
d92d74a14f
2 files changed
+12
-7
No files matched your search
@@ -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),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user