Adjust _ENTITY_COMPONENTS in hass-enforce-class-module (#126603)

This commit is contained in:
epenet 2024-09-24 12:19:39 +02:00 committed by GitHub
parent 711e0ee503
commit acebf1fb48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 14 additions and 5 deletions

View File

@ -182,7 +182,7 @@ class DominosProductListView(http.HomeAssistantView):
return self.json(self.dominos.get_menu())
class DominosOrder(Entity): # pylint: disable=hass-enforce-class-module
class DominosOrder(Entity):
"""Represents a Dominos order entity."""
def __init__(self, order_info, dominos):

View File

@ -214,7 +214,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
return True
class MicrosoftFaceGroupEntity(Entity): # pylint: disable=hass-enforce-class-module
class MicrosoftFaceGroupEntity(Entity):
"""Person-Group state/data Entity."""
_attr_should_poll = False

View File

@ -127,7 +127,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
return True
class Plant(Entity): # pylint: disable=hass-enforce-class-module
class Plant(Entity):
"""Plant monitors the well-being of a plant.
It also checks the measurements against

View File

@ -9,7 +9,9 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity
from . import TriggerUpdateCoordinator
class TriggerEntity(TriggerBaseEntity, CoordinatorEntity[TriggerUpdateCoordinator]):
class TriggerEntity( # pylint: disable=hass-enforce-class-module
TriggerBaseEntity, CoordinatorEntity[TriggerUpdateCoordinator]
):
"""Template entity based on trigger data."""
def __init__(

View File

@ -76,16 +76,23 @@ _MODULES: dict[str, set[str]] = {
}
_ENTITY_COMPONENTS: set[str] = {platform.value for platform in Platform}.union(
{
"alert",
"automation",
"counter",
"dominos",
"input_boolean",
"input_button",
"input_datetime",
"input_number",
"input_select",
"input_text",
"microsoft_face",
"person",
"plant",
"remember_the_milk",
"schedule",
"script",
"tag",
"template",
"timer",
}
)