mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
Remove callback decorator from coroutine (#112276)
This commit is contained in:
parent
59df20f1d4
commit
8777606c6f
@ -40,7 +40,6 @@ from .entity import (
|
|||||||
from .hub import UnifiHub
|
from .hub import UnifiHub
|
||||||
|
|
||||||
|
|
||||||
@callback
|
|
||||||
async def async_restart_device_control_fn(
|
async def async_restart_device_control_fn(
|
||||||
api: aiounifi.Controller, obj_id: str
|
api: aiounifi.Controller, obj_id: str
|
||||||
) -> None:
|
) -> None:
|
||||||
@ -48,7 +47,6 @@ async def async_restart_device_control_fn(
|
|||||||
await api.request(DeviceRestartRequest.create(obj_id))
|
await api.request(DeviceRestartRequest.create(obj_id))
|
||||||
|
|
||||||
|
|
||||||
@callback
|
|
||||||
async def async_power_cycle_port_control_fn(
|
async def async_power_cycle_port_control_fn(
|
||||||
api: aiounifi.Controller, obj_id: str
|
api: aiounifi.Controller, obj_id: str
|
||||||
) -> None:
|
) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user