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

Clean up async_dispatcher_connect helper usage (#68613)

This commit is contained in:
Franck Nijhof
2022-03-24 13:19:11 +01:00
committed by GitHub
parent de40770926
commit 15cffbe496
20 changed files with 75 additions and 65 deletions

View File

@@ -55,6 +55,7 @@ from homeassistant.helpers import (
restore_state,
storage,
)
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.json import JSONEncoder
from homeassistant.setup import async_setup_component, setup_component
from homeassistant.util.async_ import run_callback_threadsafe
@@ -1208,7 +1209,7 @@ def async_mock_signal(hass, signal):
"""Mock service call."""
calls.append(args)
hass.helpers.dispatcher.async_dispatcher_connect(signal, mock_signal_handler)
async_dispatcher_connect(hass, signal, mock_signal_handler)
return calls