updating to latest
This commit is contained in:
15
custom_components/hacs/api/get_critical_repositories.py
Normal file
15
custom_components/hacs/api/get_critical_repositories.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""API Handler for get_critical_repositories"""
|
||||
from homeassistant.components import websocket_api
|
||||
import voluptuous as vol
|
||||
|
||||
from custom_components.hacs.helpers.functions.store import async_load_from_store
|
||||
|
||||
|
||||
@websocket_api.async_response
|
||||
@websocket_api.websocket_command({vol.Required("type"): "hacs/get_critical"})
|
||||
async def get_critical_repositories(hass, connection, msg):
|
||||
"""Handle get media player cover command."""
|
||||
critical = await async_load_from_store(hass, "critical")
|
||||
if not critical:
|
||||
critical = []
|
||||
connection.send_message(websocket_api.result_message(msg["id"], critical))
|
||||
Reference in New Issue
Block a user