Skip to content

Commit

Permalink
Fix dispatcher misuse warnings #264
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou committed Jun 7, 2024
1 parent 4f0d860 commit 182de71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/localtuya/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from homeassistant.helpers.dispatcher import (
async_dispatcher_connect,
async_dispatcher_send,
dispatcher_send,
)

from .core import pytuya
Expand Down Expand Up @@ -443,7 +444,7 @@ def _shutdown_entities(self, now=None):

if not self.connected:
signal = f"localtuya_{self._device_config.id}"
async_dispatcher_send(self._hass, signal, None)
dispatcher_send(self._hass, signal, None)

@callback
def status_updated(self, status: dict):
Expand Down

0 comments on commit 182de71

Please sign in to comment.