* 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
23 lines
542 B
Python
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
|