mirror of
https://github.com/esphome/esphome.git
synced 2025-10-28 13:43:54 +00:00
Enable readability-redundant-member-init check (#3097)
This commit is contained in:
@@ -12,8 +12,7 @@ enum class RawEncoding { NONE = 0, HEXBYTES = 1, COMMA = 2 };
|
||||
class ModbusTextSensor : public Component, public text_sensor::TextSensor, public SensorItem {
|
||||
public:
|
||||
ModbusTextSensor(ModbusRegisterType register_type, uint16_t start_address, uint8_t offset, uint8_t register_count,
|
||||
uint16_t response_bytes, RawEncoding encode, uint8_t skip_updates, bool force_new_range)
|
||||
: Component() {
|
||||
uint16_t response_bytes, RawEncoding encode, uint8_t skip_updates, bool force_new_range) {
|
||||
this->register_type = register_type;
|
||||
this->start_address = start_address;
|
||||
this->offset = offset;
|
||||
|
||||
Reference in New Issue
Block a user