Fix hassfest check for schema (#97713)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>pull/97750/head
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…
Reference in New Issue