Skip to content

Commit 22f37d0

Browse files
committed
init: use async_setup
1 parent 505f16c commit 22f37d0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
)
4242

4343

44-
def setup(hass: HomeAssistant, base_config: ConfigType) -> bool:
44+
async def async_setup(hass: HomeAssistant, base_config: ConfigType) -> bool:
4545
"""Set up waterfurnace platform."""
4646

4747
config = base_config[DOMAIN]
@@ -140,6 +140,8 @@ def shutdown(event):
140140
self.device_client.register_callback(self.dispatcher_new_data)
141141
self.device_client.register_callback(self.reset_fail_counter)
142142

143+
_LOGGER.info(f"Connected to {self.host}")
144+
143145
while True:
144146
if self._shutdown:
145147
_LOGGER.debug("Graceful shutdown")

0 commit comments

Comments
 (0)