Files
home-assistant-core/homeassistant/components/coolmaster/__init__.py
T
On Freund 1412862f2a Config entry and device for Coolmaster integration (#27925)
* Config entry and device for Coolmaster integration

* Lint/isort/flake/etc...

* Black formatting

* Code review fixes

* Config flow tests for coolmaster

* Add pycoolmaster requirement to test

* Remove port selection from Coolmaster config flow

* Update config_flow.py

* More idoimatic hash concat
2019-10-23 12:47:00 -07:00

23 lines
542 B
Python

"""The Coolmaster integration."""
async def async_setup(hass, config):
"""Set up Coolmaster components."""
return True
async def async_setup_entry(hass, entry):
"""Set up Coolmaster from a config entry."""
hass.async_add_job(hass.config_entries.async_forward_entry_setup(entry, "climate"))
return True
async def async_unload_entry(hass, entry):
"""Unload a Coolmaster config entry."""
await hass.async_add_job(
hass.config_entries.async_forward_entry_unload(entry, "climate")
)
return True