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
This commit is contained in:
1 parent
b6fd191dc4
commit
1412862f2a
11 files changed
+265
-33
No files matched your search
@@ -1 +1,22 @@
|
||||
"""The coolmaster component."""
|
||||
"""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
|
||||
Reference in new issue
Block a user