We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4ac2e commit e9ed37cCopy full SHA for e9ed37c
1 file changed
custom_components/powercalc/power_profile/loader/local.py
@@ -2,7 +2,6 @@
2
import json
3
import logging
4
import os
5
-import re
6
from typing import Any, cast
7
8
from homeassistant.core import HomeAssistant
@@ -154,8 +153,7 @@ def _load_custom_library(self) -> None:
154
153
155
manufacturer = manufacturer_dir.lower()
156
for model_dir in next(os.walk(manufacturer_path))[1]:
157
- pattern = re.compile(r"^\..*")
158
- if pattern.match(model_dir):
+ if model_dir.startswith("."):
159
continue
160
161
model_path = os.path.join(manufacturer_path, model_dir)
0 commit comments