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:
@@ -27,6 +27,7 @@ from .const import (
|
||||
CONF_THERMOSTAT_VALVE,
|
||||
CONF_THERMOSTAT_CLIMATE,
|
||||
CONF_THERMOSTAT_TYPE,
|
||||
CONF_THERMOSTAT_CENTRAL_CONFIG,
|
||||
)
|
||||
|
||||
THRESHOLD_WATT_KILO = 100
|
||||
@@ -46,6 +47,10 @@ async def async_setup_entry(
|
||||
|
||||
unique_id = entry.entry_id
|
||||
name = entry.data.get(CONF_NAME)
|
||||
vt_type = entry.data.get(CONF_THERMOSTAT_TYPE)
|
||||
|
||||
if vt_type == CONF_THERMOSTAT_CENTRAL_CONFIG:
|
||||
return
|
||||
|
||||
entities = [
|
||||
LastTemperatureSensor(hass, unique_id, name, entry.data),
|
||||
|
||||
Reference in New Issue
Block a user