Handle missing supported brands (#78090)
This commit is contained in:
parent
fe04af8798
commit
0e734e629c
2 changed files with 10 additions and 1 deletions
|
@ -722,6 +722,9 @@ async def handle_supported_brands(
|
|||
for int_or_exc in ints_or_excs.values():
|
||||
if isinstance(int_or_exc, Exception):
|
||||
raise int_or_exc
|
||||
# Happens if a custom component without supported brands overrides a built-in one with supported brands
|
||||
if "supported_brands" not in int_or_exc.manifest:
|
||||
continue
|
||||
data[int_or_exc.domain] = int_or_exc.manifest["supported_brands"]
|
||||
connection.send_result(msg["id"], data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue