diff --git a/custom_components/healthchecksio/__init__.py b/custom_components/healthchecksio/__init__.py index a98db30..76f90a3 100644 --- a/custom_components/healthchecksio/__init__.py +++ b/custom_components/healthchecksio/__init__.py @@ -13,11 +13,9 @@ from homeassistant import config_entries, core from homeassistant.const import Platform from homeassistant.helpers.aiohttp_client import async_get_clientsession -from homeassistant.helpers.typing import ConfigType from homeassistant.util import Throttle from .const import ( - DOMAIN, DOMAIN_DATA, OFFICIAL_SITE_ROOT, ) @@ -30,16 +28,9 @@ LOGGER = getLogger(__name__) -async def async_setup(hass: core.HomeAssistant, config: ConfigType): - """Set up this component using YAML is not supported.""" - if config.get(DOMAIN) is not None: - LOGGER.error("Configuration with YAML is not supported") - - return True - - async def async_setup_entry( - hass: core.HomeAssistant, config_entry: config_entries.ConfigEntry + hass: core.HomeAssistant, + config_entry: config_entries.ConfigEntry, ) -> bool: """Set up this integration using UI.""" # Create DATA dict diff --git a/custom_components/healthchecksio/const.py b/custom_components/healthchecksio/const.py index aa6a8d6..815fbb3 100644 --- a/custom_components/healthchecksio/const.py +++ b/custom_components/healthchecksio/const.py @@ -4,7 +4,6 @@ DOMAIN = "healthchecksio" DOMAIN_DATA = f"{DOMAIN}_data" INTEGRATION_VERSION = "main" -PLATFORMS = ["binary_sensor"] ISSUE_URL = "https://github.com/custom-components/healthchecksio/issues" ATTRIBUTION = "Data from this is provided by healthchecks.io."