mirror of
https://github.com/home-assistant/core.git
synced 2026-12-04 12:50:45 -04:00
Define public names of the helper integrations (#188752)
This commit is contained in:
@@ -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."""
|
||||
|
||||
@@ -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."""
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user