Initial commit.

This commit is contained in:
2025-08-30 16:34:17 -04:00
commit f9e55b8704
2194 changed files with 86781 additions and 0 deletions
@@ -0,0 +1,19 @@
import logging
from homeassistant.components.frontend import add_extra_js_url
from homeassistant.components.http import HomeAssistantHTTP
from homeassistant.components.http import StaticPathConfig
DATA_EXTRA_MODULE_URL = 'frontend_extra_module_url'
_LOGGER = logging.getLogger(__name__)
from .const import VERSION
async def load_plugins(hass, name):
#_LOGGER.warning(f"load_plugins() version: {VERSION}")
add_extra_js_url(hass, f"/dwains_dashboard/js/dwains-dashboard.js?version={VERSION}")
await hass.http.async_register_static_paths(
[StaticPathConfig("/dwains_dashboard/js", hass.config.path(f"custom_components/{name}/js"), True)]
)