mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix hassfest check for schema (#97713)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
This commit is contained in:
parent
52fc3c26d1
commit
282ae80cc2
@ -20,7 +20,7 @@ def _has_assignment(module: ast.Module, name: str) -> bool:
|
||||
continue
|
||||
if type(item) == ast.Assign:
|
||||
for target in item.targets:
|
||||
if target.id == name:
|
||||
if getattr(target, "id", None) == name:
|
||||
return True
|
||||
continue
|
||||
if item.target.id == name:
|
||||
|
Loading…
x
Reference in New Issue
Block a user