Skip to content

Commit

Permalink
Formating code according to ESPHome requirements 2
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldn committed May 20, 2024
1 parent 6bf76e6 commit 6f40574
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/haier/binary_sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
HonClimate,
)

CODEOWNERS = ["@paveldn"]
BinarySensorTypeEnum = HonClimate.enum("SubBinarySensorType", True)

# Haier sensors
Expand Down
1 change: 1 addition & 0 deletions components/haier/button/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
haier_ns,
)

CODEOWNERS = ["@paveldn"]
SelfCleaningButton = haier_ns.class_("SelfCleaningButton", button.Button)
SteriCleaningButton = haier_ns.class_("SteriCleaningButton", button.Button)

Expand Down
2 changes: 1 addition & 1 deletion components/haier/hon_climate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ void HonClimate::set_sub_text_sensor(SubTextSensorType type, text_sensor::TextSe
}
}

void HonClimate::update_sub_text_sensor_(SubTextSensorType type, const std::string& value) {
void HonClimate::update_sub_text_sensor_(SubTextSensorType type, const std::string &value) {
size_t index = (size_t) type;
if (this->sub_text_sensors_[index] != nullptr)
this->sub_text_sensors_[index]->publish_state(value);
Expand Down
2 changes: 1 addition & 1 deletion components/haier/hon_climate.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class HonClimate : public HaierClimateBase {
void set_sub_text_sensor(SubTextSensorType type, text_sensor::TextSensor *sens);

protected:
void update_sub_text_sensor_(SubTextSensorType type, const std::string& value);
void update_sub_text_sensor_(SubTextSensorType type, const std::string &value);
text_sensor::TextSensor *sub_text_sensors_[(size_t) SubTextSensorType::SUB_TEXT_SENSOR_TYPE_COUNT]{nullptr};
#endif
public:
Expand Down
1 change: 1 addition & 0 deletions components/haier/sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
HonClimate,
)

CODEOWNERS = ["@paveldn"]
SensorTypeEnum = HonClimate.enum("SubSensorType", True)

# Haier sensors
Expand Down
1 change: 1 addition & 0 deletions components/haier/text_sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
HonClimate,
)

CODEOWNERS = ["@paveldn"]
TextSensorTypeEnum = HonClimate.enum("SubTextSensorType", True)

# Haier text sensors
Expand Down

0 comments on commit 6f40574

Please sign in to comment.