Convert hardware system status websocket api to a normal function (#111172)
* Convert hardware system status websocket api to a normal function Nothing is awaited here * tweakpull/111194/head
parent
87fed65fb3
commit
70d7f74f35
|
@ -66,13 +66,13 @@ async def ws_info(
|
|||
connection.send_result(msg["id"], {"hardware": hardware_info})
|
||||
|
||||
|
||||
@callback
|
||||
@websocket_api.websocket_command(
|
||||
{
|
||||
vol.Required("type"): "hardware/subscribe_system_status",
|
||||
}
|
||||
)
|
||||
@websocket_api.async_response
|
||||
async def ws_subscribe_system_status(
|
||||
def ws_subscribe_system_status(
|
||||
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]
|
||||
) -> None:
|
||||
"""Subscribe to system status updates."""
|
||||
|
|
Loading…
Reference in New Issue