Adjust comfoconnect
parent
7e756798a7
commit
bfff08f7fc
|
@ -10,6 +10,7 @@ from homeassistant.const import (
|
|||
CONF_PIN,
|
||||
CONF_TOKEN,
|
||||
EVENT_HOMEASSISTANT_STOP,
|
||||
Platform,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import discovery
|
||||
|
@ -82,7 +83,7 @@ def setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||
hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, _shutdown)
|
||||
|
||||
# Load platforms
|
||||
discovery.load_platform(hass, "fan", DOMAIN, {}, config)
|
||||
discovery.load_platform(hass, Platform.FAN, DOMAIN, {}, config)
|
||||
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue