mirror of
https://github.com/geoffdavis/esphome-mitsubishiheatpump
synced 2024-08-30 18:12:13 +00:00
53c3d88e55
Starting from https://github.com/geoffdavis/esphome-mitsubishiheatpump/pull/103 by @seime, extract the vane implementation code and format according to existing style. Leave behind all the reformatting.
16 lines
315 B
C++
16 lines
315 B
C++
#pragma once
|
|
|
|
#include "esphome/components/select/select.h"
|
|
#include "esphome/core/component.h"
|
|
|
|
namespace esphome {
|
|
|
|
class MitsubishiACSelect : public select::Select, public Component {
|
|
protected:
|
|
void control(const std::string &value) override {
|
|
this->publish_state(value);
|
|
}
|
|
};
|
|
|
|
} // namespace esphome
|