Add Mill config flow (#35136)
* Mill config, wip * add tests * fix merge * update tests * unique id * Mill strings * mill config flow * mill config flow * test import * test import * req * ccoverage * Apply suggestions from code review Co-authored-by: J. Nick Koston <nick@koston.org> * style * Apply suggestions from code review Co-authored-by: Paulus Schoutsen <balloob@gmail.com> * update strings * add test Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
9 files changed
+213
-11
No files matched your search
@@ -1 +1,25 @@
|
||||
"""The mill component."""
|
||||
import logging
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def async_setup(hass, config):
|
||||
"""Set up the Mill platform."""
|
||||
return True
|
||||
|
||||
|
||||
async def async_setup_entry(hass, entry):
|
||||
"""Set up the Mill heater."""
|
||||
hass.async_create_task(
|
||||
hass.config_entries.async_forward_entry_setup(entry, "climate")
|
||||
)
|
||||
return True
|
||||
|
||||
|
||||
async def async_unload_entry(hass, config_entry):
|
||||
"""Unload a config entry."""
|
||||
unload_ok = await hass.config_entries.async_forward_entry_unload(
|
||||
config_entry, "climate"
|
||||
)
|
||||
return unload_ok
|
||||
Reference in new issue
Block a user