Allow multiple unnamed libraries (#2132)

This commit is contained in:
Stefan Agner 2021-08-07 13:16:34 +02:00 committed by GitHub
parent dfffaace26
commit 5bfac5ec09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -653,7 +653,7 @@ class EsphomeCore:
"".format(library, type(library))
)
for other in self.libraries[:]:
if other.name != library.name:
if other.name != library.name or other.name is None or library.name is None:
continue
if other.repository is not None:
if library.repository is None or other.repository == library.repository: