Skip to content

Commit 1e4eb52

Browse files
committed
auto formatting
1 parent 9ef2e62 commit 1e4eb52

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/devices/solar.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,13 @@ Solar::Solar(uint8_t device_type, uint8_t device_id, uint8_t product_id, const s
128128
register_device_value(TAG_NONE, &energyToday_, DeviceValueType::ULONG, nullptr, FL_(energyToday), DeviceValueUOM::WH);
129129
register_device_value(TAG_NONE, &energyTotal_, DeviceValueType::ULONG, FL_(div10), FL_(energyTotal), DeviceValueUOM::KWH);
130130

131-
register_device_value(
132-
TAG_NONE, &heatTransferSystem_, DeviceValueType::BOOL, nullptr, FL_(heatTransferSystem), DeviceValueUOM::BOOLEAN, MAKE_CF_CB(set_heatTransferSystem));
131+
register_device_value(TAG_NONE,
132+
&heatTransferSystem_,
133+
DeviceValueType::BOOL,
134+
nullptr,
135+
FL_(heatTransferSystem),
136+
DeviceValueUOM::BOOLEAN,
137+
MAKE_CF_CB(set_heatTransferSystem));
133138
register_device_value(TAG_NONE, &externalTank_, DeviceValueType::BOOL, nullptr, FL_(externalTank), DeviceValueUOM::BOOLEAN, MAKE_CF_CB(set_externalTank));
134139
register_device_value(
135140
TAG_NONE, &thermalDisinfect_, DeviceValueType::BOOL, nullptr, FL_(thermalDisinfect), DeviceValueUOM::BOOLEAN, MAKE_CF_CB(set_thermalDisinfect));

src/devices/solar.h

-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ class Solar : public EMSdevice {
141141
bool set_climateZone(const char * value, const int8_t id);
142142
bool set_collector1Area(const char * value, const int8_t id);
143143
bool set_collector1Type(const char * value, const int8_t id);
144-
145144
};
146145

147146
} // namespace emsesp

src/locale_EN.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ MAKE_PSTR(w, "W")
173173
MAKE_PSTR(kb, "KB")
174174
MAKE_PSTR(seconds, "seconds")
175175
MAKE_PSTR(dbm, "dBm")
176-
MAKE_PSTR(num, " ") // this is hack so HA renders numbers correctly
176+
MAKE_PSTR(num, " ") // this is hack so HA renders numbers correctly
177177
MAKE_PSTR(bool, " ") // this is hack so HA renders numbers correctly
178178

179179
// TAG mapping - maps to DeviceValueTAG_s in emsdevice.cpp

0 commit comments

Comments
 (0)