mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +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())
|
return self.json(self.dominos.get_menu())
|
||||||
|
|
||||||
|
|
||||||
class DominosOrder(Entity): # pylint: disable=hass-enforce-class-module
|
class DominosOrder(Entity):
|
||||||
"""Represents a Dominos order entity."""
|
"""Represents a Dominos order entity."""
|
||||||
|
|
||||||
def __init__(self, order_info, dominos):
|
def __init__(self, order_info, dominos):
|
||||||
|
@ -214,7 +214,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
class MicrosoftFaceGroupEntity(Entity): # pylint: disable=hass-enforce-class-module
|
class MicrosoftFaceGroupEntity(Entity):
|
||||||
"""Person-Group state/data Entity."""
|
"""Person-Group state/data Entity."""
|
||||||
|
|
||||||
_attr_should_poll = False
|
_attr_should_poll = False
|
||||||
|
@ -127,7 +127,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
class Plant(Entity): # pylint: disable=hass-enforce-class-module
|
class Plant(Entity):
|
||||||
"""Plant monitors the well-being of a plant.
|
"""Plant monitors the well-being of a plant.
|
||||||
|
|
||||||
It also checks the measurements against
|
It also checks the measurements against
|
||||||
|
@ -9,7 +9,9 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
|||||||
from . import TriggerUpdateCoordinator
|
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."""
|
"""Template entity based on trigger data."""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
|
@ -76,16 +76,23 @@ _MODULES: dict[str, set[str]] = {
|
|||||||
}
|
}
|
||||||
_ENTITY_COMPONENTS: set[str] = {platform.value for platform in Platform}.union(
|
_ENTITY_COMPONENTS: set[str] = {platform.value for platform in Platform}.union(
|
||||||
{
|
{
|
||||||
|
"alert",
|
||||||
"automation",
|
"automation",
|
||||||
"counter",
|
"counter",
|
||||||
|
"dominos",
|
||||||
"input_boolean",
|
"input_boolean",
|
||||||
|
"input_button",
|
||||||
"input_datetime",
|
"input_datetime",
|
||||||
"input_number",
|
"input_number",
|
||||||
|
"input_select",
|
||||||
"input_text",
|
"input_text",
|
||||||
|
"microsoft_face",
|
||||||
"person",
|
"person",
|
||||||
|
"plant",
|
||||||
|
"remember_the_milk",
|
||||||
|
"schedule",
|
||||||
"script",
|
"script",
|
||||||
"tag",
|
"tag",
|
||||||
"template",
|
|
||||||
"timer",
|
"timer",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user