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 * tweak
This commit is contained in:
parent
87fed65fb3
commit
70d7f74f35
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue