Define public names of the helper integrations (#188752)

This commit is contained in:
epenet
2026-10-26 19:37:09 +01:00
committed by GitHub
parent 739b32544d
commit 457f418fbb
14 changed files with 80 additions and 4 deletions
@@ -11,8 +11,14 @@ from homeassistant.helpers.helper_integration import (
async_remove_helper_devices,
)
from .const import DOMAIN
_LOGGER = logging.getLogger(__name__)
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Set up Derivative from a config entry."""
+5 -1
View File
@@ -3,7 +3,11 @@
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from .const import PLATFORMS
from .const import DOMAIN, PLATFORMS
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
@@ -81,6 +81,10 @@ CONFIG_SCHEMA = probatio.Schema(
_LOGGER = logging.getLogger(__name__)
__all__ = [
"DOMAIN",
]
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the Generic Hygrostat component."""
@@ -15,10 +15,21 @@ from homeassistant.helpers.helper_integration import (
async_remove_helper_devices,
)
from .const import CONF_DUR_COOLDOWN, CONF_HEATER, CONF_MIN_DUR, CONF_SENSOR, PLATFORMS
from .const import (
CONF_DUR_COOLDOWN,
CONF_HEATER,
CONF_MIN_DUR,
CONF_SENSOR,
DOMAIN,
PLATFORMS,
)
_LOGGER = logging.getLogger(__name__)
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Set up from a config entry."""
@@ -19,6 +19,7 @@ from .const import (
CONF_END,
CONF_MIN_STATE_DURATION,
CONF_START,
DOMAIN,
PLATFORMS,
SECTION_ADDITIONAL_SETTINGS,
)
@@ -29,6 +30,10 @@ type HistoryStatsConfigEntry = ConfigEntry[HistoryStatsUpdateCoordinator]
_LOGGER = logging.getLogger(__name__)
__all__ = [
"DOMAIN",
]
async def async_setup_entry(
hass: HomeAssistant, entry: HistoryStatsConfigEntry
@@ -11,10 +11,14 @@ from homeassistant.helpers.helper_integration import (
async_remove_helper_devices,
)
from .const import CONF_SOURCE_SENSOR
from .const import CONF_SOURCE_SENSOR, DOMAIN
_LOGGER = logging.getLogger(__name__)
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Set up Integration from a config entry."""
@@ -4,8 +4,14 @@ from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant
from .const import DOMAIN
PLATFORMS = [Platform.SENSOR]
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Set up Min/Max from a config entry."""
@@ -14,12 +14,16 @@ from homeassistant.helpers.helper_integration import (
async_remove_helper_devices,
)
from .const import CONF_INDOOR_HUMIDITY, CONF_INDOOR_TEMP, CONF_OUTDOOR_TEMP
from .const import CONF_INDOOR_HUMIDITY, CONF_INDOOR_TEMP, CONF_OUTDOOR_TEMP, DOMAIN
PLATFORMS = [Platform.SENSOR]
_LOGGER = logging.getLogger(__name__)
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Set up Mold indicator from a config entry."""
@@ -3,6 +3,12 @@
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from .const import DOMAIN
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Set up a config entry."""
@@ -16,6 +16,10 @@ PLATFORMS = [Platform.SENSOR]
_LOGGER = logging.getLogger(__name__)
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Set up Statistics from a config entry."""
@@ -19,6 +19,10 @@ from .const import CONF_INVERT, CONF_TARGET_DOMAIN, DOMAIN
_LOGGER = logging.getLogger(__name__)
__all__ = [
"DOMAIN",
]
@callback
def async_get_parent_device_id(hass: HomeAssistant, entity_id: str) -> str | None:
@@ -11,8 +11,14 @@ from homeassistant.helpers.helper_integration import (
async_remove_helper_devices,
)
from .const import DOMAIN
_LOGGER = logging.getLogger(__name__)
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Set up Min/Max from a config entry."""
+6
View File
@@ -4,6 +4,12 @@ from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant
from .const import DOMAIN
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Set up Times of the Day from a config entry."""
@@ -11,10 +11,16 @@ from homeassistant.helpers.helper_integration import (
async_remove_helper_devices,
)
from .const import DOMAIN
PLATFORMS = [Platform.BINARY_SENSOR]
_LOGGER = logging.getLogger(__name__)
__all__ = [
"DOMAIN",
]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Set up Trend from a config entry."""