Config UI duplicate product entries #13709
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #13632
@andig schräger Bug. Die
func loadTemplates(class Class)
Funktion hat zwarclass
entgegengenommen, aber eigentlich immer in einem Durchlauf die Templates aller Klassen erzeugt. Das war nie ein Problem, da weitere Aufrufe durch dentemplates[class] != nil
Check einfach sofort abgebrochen wurden.Mit dem Einführen von
Circuit
kam jetzt allerdings ein Aufruf dazu, für den es noch keinen Eintrag gab. Daher sind die Templates aller Klassen ein weiteres Mal hinzugefügt worden.Siehe https://github.com/evcc-io/evcc/pull/13207/files#diff-f43b40ea0a36f6de1f9422ee69065a3266654772df0ebe4d4931ce7f7870cd84R12