ESPHome  2024.7.0
alarm_control_panel_call.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
6 
7 #include "esphome/core/helpers.h"
8 
9 namespace esphome {
10 namespace alarm_control_panel {
11 
12 class AlarmControlPanel;
13 
15  public:
17 
18  AlarmControlPanelCall &set_code(const std::string &code);
27 
28  void perform();
30  const optional<std::string> &get_code() const;
31 
32  protected:
36  void validate_();
37 };
38 
39 } // namespace alarm_control_panel
40 } // namespace esphome
AlarmControlPanelCall & set_code(const std::string &code)
const optional< AlarmControlPanelState > & get_state() const
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7