mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
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
@ -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…
x
Reference in New Issue
Block a user