Skip to content

Commit

Permalink
Remove unused PLATFORMS
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jul 22, 2024
1 parent 27c7662 commit a5a1cf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
13 changes: 2 additions & 11 deletions custom_components/healthchecksio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion custom_components/healthchecksio/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit a5a1cf2

Please sign in to comment.