INNER CODE UNIT · Python

async_pause_setup

3dg1luk43/ha_washdata · custom_components/ha_washdata/__init__.py:125

    def async_pause_setup(hass, phase):  # type: ignore[misc]
        """No-op stand-in for HA's setup-time credit context manager."""
        return nullcontext()


_LOGGER = logging.getLogger(__name__)

PLATFORMS: list[Platform] = [
    Platform.SENSOR,
    Platform.BINARY_SENSOR,
    Platform.SELECT,
    Platform.BUTTON,
]

# Shared future for the once-per-HA-instance ML module warm-up (issue #408).
ML_PRELOAD_FUTURE_KEY = "ha_washdata_ml_preload"

# Entry ids whose entity platforms are currently forwarded.  HA leaves forwarded

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…