Feature 239 creates central config panel (#276)
* Add central config into ConfigFlow * Test manual of confif_flow ok * Ignore central confic in instanciate entities * Init data in base_thermostat ok * With central configuration testu ok * All testu ok * With fixture for init_vtherm_api and init_central_config * Add reload VTherms when central configuration is changed * Update strings.json and replace security by safety in README. * UPdate README with release 5.0 * FIX missing Presets central configuration initialisation * FIX frost_away_temp translation missing --------- Co-authored-by: Jean-Marc Collin <jean-marc.collin-extern@renault.com>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
# pylint: disable=line-too-long
|
||||
# pylint: disable=invalid-name
|
||||
""" Implements the VersatileThermostat climate component """
|
||||
import logging
|
||||
|
||||
@@ -37,6 +35,7 @@ from .const import (
|
||||
CONF_THERMOSTAT_SWITCH,
|
||||
CONF_THERMOSTAT_CLIMATE,
|
||||
CONF_THERMOSTAT_VALVE,
|
||||
CONF_THERMOSTAT_CENTRAL_CONFIG,
|
||||
)
|
||||
|
||||
from .thermostat_switch import ThermostatOverSwitch
|
||||
@@ -64,7 +63,11 @@ async def async_setup_entry(
|
||||
name = entry.data.get(CONF_NAME)
|
||||
vt_type = entry.data.get(CONF_THERMOSTAT_TYPE)
|
||||
|
||||
if vt_type == CONF_THERMOSTAT_CENTRAL_CONFIG:
|
||||
return
|
||||
|
||||
# Instantiate the right base class
|
||||
entity = None
|
||||
if vt_type == CONF_THERMOSTAT_SWITCH:
|
||||
entity = ThermostatOverSwitch(hass, unique_id, name, entry.data)
|
||||
elif vt_type == CONF_THERMOSTAT_CLIMATE:
|
||||
|
||||
Reference in New Issue
Block a user