mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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
|
continue
|
||||||
if type(item) == ast.Assign:
|
if type(item) == ast.Assign:
|
||||||
for target in item.targets:
|
for target in item.targets:
|
||||||
if target.id == name:
|
if getattr(target, "id", None) == name:
|
||||||
return True
|
return True
|
||||||
continue
|
continue
|
||||||
if item.target.id == name:
|
if item.target.id == name:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user