Public Access
refactor(ups-hid): file structure
Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
34 files changed
+475
-1371
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/components/binary_sensor/binary_sensor.h"
|
||||
#include "ups_hid.h"
|
||||
|
||||
namespace esphome
|
||||
{
|
||||
namespace ups_hid
|
||||
{
|
||||
|
||||
class UpsHidBinarySensor : public binary_sensor::BinarySensor, public Component
|
||||
{
|
||||
public:
|
||||
void set_sensor_type(const std::string &type) { sensor_type_ = type; }
|
||||
void dump_config() override;
|
||||
|
||||
protected:
|
||||
std::string sensor_type_;
|
||||
};
|
||||
|
||||
} // namespace ups_hid
|
||||
} // namespace esphome
|
||||
Reference in new issue
Block a user