Add entity components to hass-enforce-class-module pylint plugin (#126545)

This commit is contained in:
epenet 2024-09-23 19:35:48 +02:00 committed by GitHub
parent 714a1cc311
commit 788d9571b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,8 +65,21 @@ _MODULES: dict[str, set[str]] = {
"WeatherEntityDescription", "WeatherEntityDescription",
}, },
} }
_ENTITY_COMPONENTS: set[str] = {platform.value for platform in Platform} _ENTITY_COMPONENTS: set[str] = {platform.value for platform in Platform}.union(
_ENTITY_COMPONENTS.add("tag") {
"automation",
"counter",
"input_boolean",
"input_datetime",
"input_number",
"input_text",
"person",
"script",
"tag",
"template",
"timer",
}
)
class HassEnforceClassModule(BaseChecker): class HassEnforceClassModule(BaseChecker):