1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 15:18:16 +00:00
This commit is contained in:
J. Nick Koston 2023-11-17 21:30:38 -06:00
parent 93f4ec7b64
commit b1f351d84d
No known key found for this signature in database

View File

@ -172,13 +172,14 @@ class DashboardEntries:
original_names: dict[DashboardEntry, str] = {} original_names: dict[DashboardEntry, str] = {}
for path, cache_key in path_to_cache_key.items(): for path, cache_key in path_to_cache_key.items():
if entry := entries.get(path): if not (entry := entries.get(path)):
entry = DashboardEntry(path, cache_key)
added[entry] = cache_key
continue
if entry.cache_key != cache_key: if entry.cache_key != cache_key:
updated[entry] = cache_key updated[entry] = cache_key
original_names[entry] = entry.name original_names[entry] = entry.name
else:
entry = DashboardEntry(path, cache_key)
added[entry] = cache_key
if added or updated: if added or updated:
await self._loop.run_in_executor( await self._loop.run_in_executor(