mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Adjust _ENTITY_COMPONENTS in hass-enforce-class-module (#126603)
This commit is contained in:
parent
711e0ee503
commit
acebf1fb48
@ -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):
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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__(
|
||||
|
@ -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",
|
||||
}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user