Commit a5a1cf2 1 parent 27c7662 commit a5a1cf2 Copy full SHA for a5a1cf2
File tree 2 files changed +2
-12
lines changed
custom_components/healthchecksio
2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 13
13
from homeassistant import config_entries , core
14
14
from homeassistant .const import Platform
15
15
from homeassistant .helpers .aiohttp_client import async_get_clientsession
16
- from homeassistant .helpers .typing import ConfigType
17
16
from homeassistant .util import Throttle
18
17
19
18
from .const import (
20
- DOMAIN ,
21
19
DOMAIN_DATA ,
22
20
OFFICIAL_SITE_ROOT ,
23
21
)
30
28
LOGGER = getLogger (__name__ )
31
29
32
30
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
-
41
31
async def async_setup_entry (
42
- hass : core .HomeAssistant , config_entry : config_entries .ConfigEntry
32
+ hass : core .HomeAssistant ,
33
+ config_entry : config_entries .ConfigEntry ,
43
34
) -> bool :
44
35
"""Set up this integration using UI."""
45
36
# Create DATA dict
Original file line number Diff line number Diff line change 4
4
DOMAIN = "healthchecksio"
5
5
DOMAIN_DATA = f"{ DOMAIN } _data"
6
6
INTEGRATION_VERSION = "main"
7
- PLATFORMS = ["binary_sensor" ]
8
7
9
8
ISSUE_URL = "https://github.com/custom-components/healthchecksio/issues"
10
9
ATTRIBUTION = "Data from this is provided by healthchecks.io."
You can’t perform that action at this time.
0 commit comments