mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
remove lint
This commit is contained in:
parent
17dc2b00f8
commit
c656a4b96b
3 changed files with 4 additions and 4 deletions
|
@ -141,7 +141,7 @@ struct ClimateDeviceRestoreState {
|
|||
float target_temperature_low;
|
||||
float target_temperature_high;
|
||||
};
|
||||
} __attribute__((packed));
|
||||
};
|
||||
float target_humidity;
|
||||
|
||||
/// Convert this struct to a climate call that can be performed.
|
||||
|
|
|
@ -21,7 +21,7 @@ class TextTraits {
|
|||
int get_max_length() const { return this->max_length_; }
|
||||
|
||||
// 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_; }
|
||||
|
||||
// Set/get the frontend mode.
|
||||
|
|
|
@ -63,7 +63,7 @@ class EntityBase {
|
|||
EntityCategory entity_category_{ENTITY_CATEGORY_NONE};
|
||||
};
|
||||
|
||||
class EntityBase_DeviceClass { // NOLINT(readability-identifier-naming)
|
||||
class EntityBase_DeviceClass {
|
||||
public:
|
||||
/// Get the device class, using the manual override if set.
|
||||
std::string get_device_class();
|
||||
|
@ -74,7 +74,7 @@ class EntityBase_DeviceClass { // NOLINT(readability-identifier-naming)
|
|||
const char *device_class_{nullptr}; ///< Device class override
|
||||
};
|
||||
|
||||
class EntityBase_UnitOfMeasurement { // NOLINT(readability-identifier-naming)
|
||||
class EntityBase_UnitOfMeasurement {
|
||||
public:
|
||||
/// Get the unit of measurement, using the manual override if set.
|
||||
std::string get_unit_of_measurement();
|
||||
|
|
Loading…
Reference in a new issue