File tree 1 file changed +9
-4
lines changed
custom_components/ui_lovelace_minimalist
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 18
18
GitHubRatelimitException ,
19
19
)
20
20
from homeassistant .components .frontend import add_extra_js_url , async_remove_panel
21
+ from homeassistant .components .http import StaticPathConfig
21
22
from homeassistant .components .lovelace import _register_panel
22
23
from homeassistant .components .lovelace .dashboard import LovelaceYAML
23
24
from homeassistant .config_entries import ConfigEntry , ConfigEntryState
@@ -363,10 +364,14 @@ async def configure_plugins(self) -> bool:
363
364
)
364
365
365
366
# Register
366
- self .hass .http .register_static_path (
367
- "/ui_lovelace_minimalist/cards" ,
368
- self .hass .config .path (f"{ self .integration_dir } /cards" ),
369
- True ,
367
+ await self .hass .http .async_register_static_paths (
368
+ [
369
+ StaticPathConfig (
370
+ "/ui_lovelace_minimalist/cards" ,
371
+ self .hass .config .path (f"{ self .integration_dir } /cards" ),
372
+ True ,
373
+ )
374
+ ]
370
375
)
371
376
372
377
except Exception as exception :
You can’t perform that action at this time.
0 commit comments