Don't try to load resources in safe mode (#103122)

This commit is contained in:
Paul Bottein 2023-10-31 19:25:25 +01:00 committed by GitHub
parent 6433bf4d77
commit 4d475a9758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,7 @@ async def websocket_lovelace_resources(
if hass.config.safe_mode:
connection.send_result(msg["id"], [])
return
if not resources.loaded:
await resources.async_load()