mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 19:54:14 +01:00
eea78531a1
* add climate * Mitsubishi updates * refactor mitsubishi to use climate_ir * lint
22 lines
552 B
C++
22 lines
552 B
C++
#pragma once
|
|
|
|
#include "esphome/components/climate_ir/climate_ir.h"
|
|
|
|
namespace esphome {
|
|
namespace mitsubishi {
|
|
|
|
// Temperature
|
|
const uint8_t MITSUBISHI_TEMP_MIN = 16; // Celsius
|
|
const uint8_t MITSUBISHI_TEMP_MAX = 31; // Celsius
|
|
|
|
class MitsubishiClimate : public climate_ir::ClimateIR {
|
|
public:
|
|
MitsubishiClimate() : climate_ir::ClimateIR(MITSUBISHI_TEMP_MIN, MITSUBISHI_TEMP_MAX) {}
|
|
|
|
protected:
|
|
/// Transmit via IR the state of this climate controller.
|
|
void transmit_state() override;
|
|
};
|
|
|
|
} // namespace mitsubishi
|
|
} // namespace esphome
|