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 Franck Nijhof
parent bfae1468d6
commit e097dc02dd
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

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()