mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 13:09:12 +00:00
Mark configurable classes as final (21/21: zhlt01-zyaura) (#16972)
This commit is contained in:
@@ -142,7 +142,7 @@ static const float AC1_TEMP_MIN = 16.0f;
|
|||||||
static const float AC1_TEMP_MAX = 32.0f;
|
static const float AC1_TEMP_MAX = 32.0f;
|
||||||
static const float AC1_TEMP_INC = 1.0f;
|
static const float AC1_TEMP_INC = 1.0f;
|
||||||
|
|
||||||
class ZHLT01Climate : public climate_ir::ClimateIR {
|
class ZHLT01Climate final : public climate_ir::ClimateIR {
|
||||||
public:
|
public:
|
||||||
ZHLT01Climate()
|
ZHLT01Climate()
|
||||||
: climate_ir::ClimateIR(
|
: climate_ir::ClimateIR(
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#endif
|
#endif
|
||||||
namespace esphome::zigbee {
|
namespace esphome::zigbee {
|
||||||
|
|
||||||
template<typename... Ts> class FactoryResetAction : public Action<Ts...>, public Parented<ZigbeeComponent> {
|
template<typename... Ts> class FactoryResetAction final : public Action<Ts...>, public Parented<ZigbeeComponent> {
|
||||||
public:
|
public:
|
||||||
void play(const Ts &...x) override { this->parent_->factory_reset(); }
|
void play(const Ts &...x) override { this->parent_->factory_reset(); }
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ extern "C" {
|
|||||||
|
|
||||||
namespace esphome::zigbee {
|
namespace esphome::zigbee {
|
||||||
|
|
||||||
class ZigbeeTime : public time::RealTimeClock, public ZigbeeEntity {
|
class ZigbeeTime final : public time::RealTimeClock, public ZigbeeEntity {
|
||||||
public:
|
public:
|
||||||
void setup() override;
|
void setup() override;
|
||||||
void dump_config() override;
|
void dump_config() override;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ enum ZigbeeReportT {
|
|||||||
ZIGBEE_REPORT_FORCE,
|
ZIGBEE_REPORT_FORCE,
|
||||||
};
|
};
|
||||||
|
|
||||||
class ZigbeeAttribute : public Component {
|
class ZigbeeAttribute final : public Component {
|
||||||
public:
|
public:
|
||||||
ZigbeeAttribute(ZigbeeComponent *parent, uint8_t endpoint_id, uint16_t cluster_id, uint8_t role, uint16_t attr_id,
|
ZigbeeAttribute(ZigbeeComponent *parent, uint8_t endpoint_id, uint16_t cluster_id, uint8_t role, uint16_t attr_id,
|
||||||
uint8_t attr_type, float scale, uint8_t max_size)
|
uint8_t attr_type, float scale, uint8_t max_size)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ extern "C" {
|
|||||||
|
|
||||||
namespace esphome::zigbee {
|
namespace esphome::zigbee {
|
||||||
|
|
||||||
class ZigbeeBinarySensor : public ZigbeeEntity, public Component {
|
class ZigbeeBinarySensor final : public ZigbeeEntity, public Component {
|
||||||
public:
|
public:
|
||||||
explicit ZigbeeBinarySensor(binary_sensor::BinarySensor *binary_sensor);
|
explicit ZigbeeBinarySensor(binary_sensor::BinarySensor *binary_sensor);
|
||||||
void set_cluster_attributes(BinaryAttrs &cluster_attributes) { this->cluster_attributes_ = &cluster_attributes; }
|
void set_cluster_attributes(BinaryAttrs &cluster_attributes) { this->cluster_attributes_ = &cluster_attributes; }
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ uint8_t *get_zcl_string(const char *str, uint8_t max_size, bool use_max_size = f
|
|||||||
|
|
||||||
class ZigbeeAttribute;
|
class ZigbeeAttribute;
|
||||||
|
|
||||||
class ZigbeeComponent : public Component {
|
class ZigbeeComponent final : public Component {
|
||||||
public:
|
public:
|
||||||
void setup() override;
|
void setup() override;
|
||||||
void loop() override;
|
void loop() override;
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ void zb_zcl_analog_output_init_client();
|
|||||||
|
|
||||||
namespace esphome::zigbee {
|
namespace esphome::zigbee {
|
||||||
|
|
||||||
class ZigbeeNumber : public ZigbeeEntity, public Component {
|
class ZigbeeNumber final : public ZigbeeEntity, public Component {
|
||||||
public:
|
public:
|
||||||
ZigbeeNumber(number::Number *n) : number_(n) {}
|
ZigbeeNumber(number::Number *n) : number_(n) {}
|
||||||
void set_cluster_attributes(AnalogAttrsOutput &cluster_attributes) {
|
void set_cluster_attributes(AnalogAttrsOutput &cluster_attributes) {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ void zb_zcl_analog_input_init_client();
|
|||||||
|
|
||||||
namespace esphome::zigbee {
|
namespace esphome::zigbee {
|
||||||
|
|
||||||
class ZigbeeSensor : public ZigbeeEntity, public Component {
|
class ZigbeeSensor final : public ZigbeeEntity, public Component {
|
||||||
public:
|
public:
|
||||||
explicit ZigbeeSensor(sensor::Sensor *sensor);
|
explicit ZigbeeSensor(sensor::Sensor *sensor);
|
||||||
void set_cluster_attributes(AnalogAttrs &cluster_attributes) { this->cluster_attributes_ = &cluster_attributes; }
|
void set_cluster_attributes(AnalogAttrs &cluster_attributes) { this->cluster_attributes_ = &cluster_attributes; }
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ void zb_zcl_binary_output_init_client();
|
|||||||
|
|
||||||
namespace esphome::zigbee {
|
namespace esphome::zigbee {
|
||||||
|
|
||||||
class ZigbeeSwitch : public ZigbeeEntity, public Component {
|
class ZigbeeSwitch final : public ZigbeeEntity, public Component {
|
||||||
public:
|
public:
|
||||||
ZigbeeSwitch(switch_::Switch *s) : switch_(s) {}
|
ZigbeeSwitch(switch_::Switch *s) : switch_(s) {}
|
||||||
void set_cluster_attributes(BinaryAttrs &cluster_attributes) { this->cluster_attributes_ = &cluster_attributes; }
|
void set_cluster_attributes(BinaryAttrs &cluster_attributes) { this->cluster_attributes_ = &cluster_attributes; }
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ struct AnalogAttrsOutput : AnalogAttrs {
|
|||||||
float resolution;
|
float resolution;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ZigbeeComponent : public Component {
|
class ZigbeeComponent final : public Component {
|
||||||
public:
|
public:
|
||||||
void setup() override;
|
void setup() override;
|
||||||
void dump_config() override;
|
void dump_config() override;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ static const char *const TAG = "Zio Ultrasonic";
|
|||||||
|
|
||||||
namespace esphome::zio_ultrasonic {
|
namespace esphome::zio_ultrasonic {
|
||||||
|
|
||||||
class ZioUltrasonicComponent : public i2c::I2CDevice, public PollingComponent, public sensor::Sensor {
|
class ZioUltrasonicComponent final : public i2c::I2CDevice, public PollingComponent, public sensor::Sensor {
|
||||||
public:
|
public:
|
||||||
void dump_config() override;
|
void dump_config() override;
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ enum ZWaveProxyFeature : uint32_t {
|
|||||||
FEATURE_ZWAVE_PROXY_ENABLED = 1 << 0,
|
FEATURE_ZWAVE_PROXY_ENABLED = 1 << 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
class ZWaveProxy : public uart::UARTDevice, public Component {
|
class ZWaveProxy final : public uart::UARTDevice, public Component {
|
||||||
public:
|
public:
|
||||||
ZWaveProxy();
|
ZWaveProxy();
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ class ZaSensorStore {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// Component for reading temperature/co2/humidity measurements from ZyAura sensors.
|
/// Component for reading temperature/co2/humidity measurements from ZyAura sensors.
|
||||||
class ZyAuraSensor : public PollingComponent {
|
class ZyAuraSensor final : public PollingComponent {
|
||||||
public:
|
public:
|
||||||
void set_pin_clock(InternalGPIOPin *pin) { pin_clock_ = pin; }
|
void set_pin_clock(InternalGPIOPin *pin) { pin_clock_ = pin; }
|
||||||
void set_pin_data(InternalGPIOPin *pin) { pin_data_ = pin; }
|
void set_pin_data(InternalGPIOPin *pin) { pin_data_ = pin; }
|
||||||
|
|||||||
Reference in New Issue
Block a user