remove lint

This commit is contained in:
Tomasz Duda 2024-08-07 18:15:33 +02:00
parent 17dc2b00f8
commit c656a4b96b
3 changed files with 4 additions and 4 deletions

View file

@ -141,7 +141,7 @@ struct ClimateDeviceRestoreState {
float target_temperature_low; float target_temperature_low;
float target_temperature_high; float target_temperature_high;
}; };
} __attribute__((packed)); };
float target_humidity; float target_humidity;
/// Convert this struct to a climate call that can be performed. /// Convert this struct to a climate call that can be performed.

View file

@ -21,7 +21,7 @@ class TextTraits {
int get_max_length() const { return this->max_length_; } int get_max_length() const { return this->max_length_; }
// Set/get the pattern. // Set/get the pattern.
void set_pattern(const std::string &pattern) { this->pattern_ = pattern; } void set_pattern(std::string pattern) { this->pattern_ = std::move(pattern); }
std::string get_pattern() const { return this->pattern_; } std::string get_pattern() const { return this->pattern_; }
// Set/get the frontend mode. // Set/get the frontend mode.

View file

@ -63,7 +63,7 @@ class EntityBase {
EntityCategory entity_category_{ENTITY_CATEGORY_NONE}; EntityCategory entity_category_{ENTITY_CATEGORY_NONE};
}; };
class EntityBase_DeviceClass { // NOLINT(readability-identifier-naming) class EntityBase_DeviceClass {
public: public:
/// Get the device class, using the manual override if set. /// Get the device class, using the manual override if set.
std::string get_device_class(); std::string get_device_class();
@ -74,7 +74,7 @@ class EntityBase_DeviceClass { // NOLINT(readability-identifier-naming)
const char *device_class_{nullptr}; ///< Device class override const char *device_class_{nullptr}; ///< Device class override
}; };
class EntityBase_UnitOfMeasurement { // NOLINT(readability-identifier-naming) class EntityBase_UnitOfMeasurement {
public: public:
/// Get the unit of measurement, using the manual override if set. /// Get the unit of measurement, using the manual override if set.
std::string get_unit_of_measurement(); std::string get_unit_of_measurement();