* new Fujitsu-General climate component * Refactor out climate_ir CC @glmnet Refactored out climate_ir python files too. Fixed invalid namespace name for climate_ir. * Add namespace lint check * Refactor Fujitsu Climate to climate_ir Co-authored-by: Otto Winter <otto@otto-winter.com>
25 lines
543 B
C++
25 lines
543 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/core/automation.h"
|
|
#include "esphome/components/climate_ir/climate_ir.h"
|
|
|
|
namespace esphome {
|
|
namespace fujitsu_general {
|
|
|
|
class FujitsuGeneralClimate : public climate_ir::ClimateIR {
|
|
public:
|
|
FujitsuGeneralClimate();
|
|
|
|
protected:
|
|
/// Transmit via IR the state of this climate controller.
|
|
void transmit_state() override;
|
|
/// Transmit via IR power off command.
|
|
void transmit_off_();
|
|
|
|
bool power_{false};
|
|
};
|
|
|
|
} // namespace fujitsu_general
|
|
} // namespace esphome
|