ESPHome
2024.10.2
esphome
esphome
components
custom
cover
custom_cover.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/cover/cover.h
"
4
5
#include <vector>
6
7
namespace
esphome
{
8
namespace
custom {
9
10
class
CustomCoverConstructor
{
11
public
:
12
CustomCoverConstructor
(
const
std::function<std::vector<cover::Cover *>()> &
init
) { this->
covers_
=
init
(); }
13
14
cover::Cover
*
get_cover
(
int
i) {
return
this->
covers_
[i]; }
15
16
protected
:
17
std::vector<cover::Cover *>
covers_
;
18
};
19
20
}
// namespace custom
21
}
// namespace esphome
esphome::custom::CustomCoverConstructor::get_cover
cover::Cover * get_cover(int i)
Definition:
custom_cover.h:14
esphome::cover::Cover
Base class for all cover devices.
Definition:
cover.h:111
esphome::custom::CustomCoverConstructor::covers_
std::vector< cover::Cover * > covers_
Definition:
custom_cover.h:17
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::init
void init()
Definition:
core.cpp:80
esphome::custom::CustomCoverConstructor::CustomCoverConstructor
CustomCoverConstructor(const std::function< std::vector< cover::Cover *>()> &init)
Definition:
custom_cover.h:12
cover.h
esphome::custom::CustomCoverConstructor
Definition:
custom_cover.h:10
Generated by
1.8.13