Adjust comfoconnect

pull/63571/head
epenet 2022-01-06 20:56:58 +00:00
parent 7e756798a7
commit bfff08f7fc
1 changed files with 2 additions and 1 deletions

View File

@ -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