mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-20 21:24:44 +01:00
fix config override bug
This commit is contained in:
@@ -54,12 +54,4 @@ def get_attr_safe(entity, attr, default):
|
||||
res = entity.attributes.get(attr, default)
|
||||
if res is None:
|
||||
res = default
|
||||
return res
|
||||
|
||||
def dict_recursive_update(source: dict, target: dict) -> dict:
|
||||
for sk, sv in source.items():
|
||||
if sk in target and isinstance(target[sk], dict):
|
||||
target[sk] = dict_recursive_update(sv, target[sk])
|
||||
else:
|
||||
target[sk] = sv
|
||||
return target
|
||||
return res
|
||||
Reference in New Issue
Block a user