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
|
@ -12,7 +12,7 @@ import requests
|
|||
from ring_doorbell import Auth, Ring
|
||||
|
||||
from homeassistant.const import Platform, __version__
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.core import HomeAssistant, ServiceCall, callback
|
||||
from homeassistant.helpers.event import async_track_time_interval
|
||||
from homeassistant.util.async_ import run_callback_threadsafe
|
||||
|
||||
|
@ -111,7 +111,7 @@ async def async_setup_entry(hass, entry):
|
|||
if hass.services.has_service(DOMAIN, "update"):
|
||||
return True
|
||||
|
||||
async def async_refresh_all(_):
|
||||
async def async_refresh_all(_: ServiceCall) -> None:
|
||||
"""Refresh all ring data."""
|
||||
for info in hass.data[DOMAIN].values():
|
||||
await info["device_data"].async_refresh_all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue