Move dallas/bool/enum formats to Settings #76

This commit is contained in:
MichaelDvP
2021-07-16 10:16:32 +02:00
parent e581539cf9
commit 1f793c49ae
21 changed files with 162 additions and 105 deletions

View File

@@ -26,13 +26,15 @@ class DummySettings {
bool shower_alert = false;
bool hide_led = false;
bool notoken_api = false;
uint8_t bool_format = 1; // on off
uint8_t enum_format = 1;
uint8_t dallas_format = 1;
// MQTT
uint16_t publish_time = 10; // seconds
uint8_t mqtt_qos = 0;
bool mqtt_retain = false;
bool enabled = true;
uint8_t dallas_format = 1;
uint8_t nested_format = 1;
uint8_t ha_climate_format = 1;
bool ha_enabled = true;
@@ -56,7 +58,6 @@ class DummySettings {
uint16_t publish_time_mixer = 10;
uint16_t publish_time_other = 10;
uint16_t publish_time_sensor = 10;
uint8_t bool_format = 1; // on off
#define FACTORY_MQTT_MAX_TOPIC_LENGTH 128