Ensure service calls are typed [o-r] (#62920)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
f6c1266af6
commit
a19c95e4bd
12 changed files with 44 additions and 41 deletions
|
@ -18,7 +18,7 @@ from homeassistant.const import (
|
|||
EVENT_HOMEASSISTANT_STOP,
|
||||
STATE_ON,
|
||||
)
|
||||
from homeassistant.core import CoreState, callback
|
||||
from homeassistant.core import CoreState, ServiceCall, callback
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.dispatcher import (
|
||||
|
@ -134,7 +134,7 @@ async def async_setup(hass, config):
|
|||
# Allow platform to specify function to register new unknown devices
|
||||
hass.data[DATA_DEVICE_REGISTER] = {}
|
||||
|
||||
async def async_send_command(call):
|
||||
async def async_send_command(call: ServiceCall) -> None:
|
||||
"""Send Rflink command."""
|
||||
_LOGGER.debug("Rflink command for %s", str(call.data))
|
||||
if not (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue