Remove unneeded code
This commit is contained in:
parent
d2c5dbeca2
commit
0e5b56e321
5
tw7100.h
5
tw7100.h
|
@ -1,5 +1,3 @@
|
|||
#ifndef TW7100_H_
|
||||
#define TW7100_H_
|
||||
#pragma once
|
||||
|
||||
#include "esphome/core/component.h"
|
||||
|
@ -54,7 +52,6 @@ class tw7100Component : public PollingComponent, public uart::UARTDevice {
|
|||
void update() override;
|
||||
void loop() override;
|
||||
void dump_config() override;
|
||||
float get_setup_priority() const override { return setup_priority::BUS; }
|
||||
#ifdef USE_BINARY_SENSOR
|
||||
void set_powered(binary_sensor::BinarySensor *powered) { this->powered_ = powered; }
|
||||
void set_has_signal(binary_sensor::BinarySensor *has_signal) { this->has_signal_ = has_signal; }
|
||||
|
@ -194,5 +191,3 @@ class tw7100Component : public PollingComponent, public uart::UARTDevice {
|
|||
|
||||
} // namespace tw7100
|
||||
} // namespace esphome
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue