1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 14:18:14 +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] = {}
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(