mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Add entity components to hass-enforce-class-module pylint plugin (#126545)
This commit is contained in:
parent
714a1cc311
commit
788d9571b5
@ -65,8 +65,21 @@ _MODULES: dict[str, set[str]] = {
|
||||
"WeatherEntityDescription",
|
||||
},
|
||||
}
|
||||
_ENTITY_COMPONENTS: set[str] = {platform.value for platform in Platform}
|
||||
_ENTITY_COMPONENTS.add("tag")
|
||||
_ENTITY_COMPONENTS: set[str] = {platform.value for platform in Platform}.union(
|
||||
{
|
||||
"automation",
|
||||
"counter",
|
||||
"input_boolean",
|
||||
"input_datetime",
|
||||
"input_number",
|
||||
"input_text",
|
||||
"person",
|
||||
"script",
|
||||
"tag",
|
||||
"template",
|
||||
"timer",
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
class HassEnforceClassModule(BaseChecker):
|
||||
|
Loading…
x
Reference in New Issue
Block a user