Skip to content

Commit a5a1cf2

Browse files
committed
Remove unused PLATFORMS
1 parent 27c7662 commit a5a1cf2

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

custom_components/healthchecksio/__init__.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
from homeassistant import config_entries, core
1414
from homeassistant.const import Platform
1515
from homeassistant.helpers.aiohttp_client import async_get_clientsession
16-
from homeassistant.helpers.typing import ConfigType
1716
from homeassistant.util import Throttle
1817

1918
from .const import (
20-
DOMAIN,
2119
DOMAIN_DATA,
2220
OFFICIAL_SITE_ROOT,
2321
)
@@ -30,16 +28,9 @@
3028
LOGGER = getLogger(__name__)
3129

3230

33-
async def async_setup(hass: core.HomeAssistant, config: ConfigType):
34-
"""Set up this component using YAML is not supported."""
35-
if config.get(DOMAIN) is not None:
36-
LOGGER.error("Configuration with YAML is not supported")
37-
38-
return True
39-
40-
4131
async def async_setup_entry(
42-
hass: core.HomeAssistant, config_entry: config_entries.ConfigEntry
32+
hass: core.HomeAssistant,
33+
config_entry: config_entries.ConfigEntry,
4334
) -> bool:
4435
"""Set up this integration using UI."""
4536
# Create DATA dict

custom_components/healthchecksio/const.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
DOMAIN = "healthchecksio"
55
DOMAIN_DATA = f"{DOMAIN}_data"
66
INTEGRATION_VERSION = "main"
7-
PLATFORMS = ["binary_sensor"]
87

98
ISSUE_URL = "https://github.com/custom-components/healthchecksio/issues"
109
ATTRIBUTION = "Data from this is provided by healthchecks.io."

0 commit comments

Comments
 (0)