INNER CODE UNIT · Python

SetupPhases

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

    class SetupPhases:  # type: ignore[no-redef]
        """Fallback so a missing helper degrades to plain (uncredited) waiting."""

        WAIT_IMPORT_PACKAGES = "wait_import_packages"

    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,
]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…