Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

Commit 726fc7b

Browse files
authored
Merge pull request #6 from kepath/fix-code-comment-hiding
also find comments with *only* leading whitespace
2 parents 402d1bf + 925c8dc commit 726fc7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/watchman/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async def parse(hass, folders, ignored_files, root=None):
244244
r"scene|script|select|sensor|sun|switch|timer|vacuum|weather|zone)\.[A-Za-z_*0-9]+)"
245245
)
246246
service_pattern = re.compile(r"service:\s*([A-Za-z_0-9]*\.[A-Za-z_0-9]+)")
247-
comment_pattern = re.compile(r"#.*")
247+
comment_pattern = re.compile(r"\s*#.*")
248248
entity_list = {}
249249
service_list = {}
250250
effectively_ignored = []

0 commit comments

Comments
 (0)