mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 14:18:14 +00:00
tweak
This commit is contained in:
parent
93f4ec7b64
commit
b1f351d84d
@ -172,13 +172,14 @@ class DashboardEntries:
|
||||
original_names: dict[DashboardEntry, str] = {}
|
||||
|
||||
for path, cache_key in path_to_cache_key.items():
|
||||
if entry := entries.get(path):
|
||||
if entry.cache_key != cache_key:
|
||||
updated[entry] = cache_key
|
||||
original_names[entry] = entry.name
|
||||
else:
|
||||
if not (entry := entries.get(path)):
|
||||
entry = DashboardEntry(path, cache_key)
|
||||
added[entry] = cache_key
|
||||
continue
|
||||
|
||||
if entry.cache_key != cache_key:
|
||||
updated[entry] = cache_key
|
||||
original_names[entry] = entry.name
|
||||
|
||||
if added or updated:
|
||||
await self._loop.run_in_executor(
|
||||
|
Loading…
x
Reference in New Issue
Block a user