From c1936a863b0524ed6e9d8f5fe1db6aa22950ae61 Mon Sep 17 00:00:00 2001 From: igiannakas <59056762+igiannakas@users.noreply.github.com> Date: Tue, 25 Jul 2023 13:26:29 +0100 Subject: [PATCH] Delete components/hs2xx3a directory --- components/hs2xx3a/__init__.py | 20 ----------------- components/hs2xx3a/binary_sensor/__init__.py | 19 ---------------- .../binary_sensor/hs2xx3a_binary_sensor.cpp | 22 ------------------- .../binary_sensor/hs2xx3a_binary_sensor.h | 18 --------------- components/hs2xx3a/hs2xx3a.cpp | 22 ------------------- components/hs2xx3a/hs2xx3a.h | 18 --------------- 6 files changed, 119 deletions(-) delete mode 100644 components/hs2xx3a/__init__.py delete mode 100644 components/hs2xx3a/binary_sensor/__init__.py delete mode 100644 components/hs2xx3a/binary_sensor/hs2xx3a_binary_sensor.cpp delete mode 100644 components/hs2xx3a/binary_sensor/hs2xx3a_binary_sensor.h delete mode 100644 components/hs2xx3a/hs2xx3a.cpp delete mode 100644 components/hs2xx3a/hs2xx3a.h diff --git a/components/hs2xx3a/__init__.py b/components/hs2xx3a/__init__.py deleted file mode 100644 index e4b7a3b..0000000 --- a/components/hs2xx3a/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -import esphome.codegen as cg -import esphome.config_validation as cv -from esphome.components import uart -from esphome.const import CONF_ID - -DEPENDENCIES = ['uart'] -AUTO_LOAD = ['binary_sensor'] -MULTI_CONF = True - -hs2xx3a_ns = cg.esphome_ns.namespace('hs2xx3a') -HS2XX3A = hs2xx3a_ns.class_('HS2XX3A', cg.Component, uart.UARTDevice) - -CONFIG_SCHEMA = cv.Schema({ - cv.GenerateID(): cv.declare_id(HS2XX3A) -}).extend(cv.COMPONENT_SCHEMA).extend(uart.UART_DEVICE_SCHEMA) - -def to_code(config): - var = cg.new_Pvariable(config[CONF_ID]) - yield cg.register_component(var, config) - yield uart.register_uart_device(var, config) \ No newline at end of file diff --git a/components/hs2xx3a/binary_sensor/__init__.py b/components/hs2xx3a/binary_sensor/__init__.py deleted file mode 100644 index 99b380a..0000000 --- a/components/hs2xx3a/binary_sensor/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -import esphome.codegen as cg -import esphome.config_validation as cv -from esphome.components import binary_sensor -from esphome.const import CONF_ID -from .. import hs2xx3a_ns, HS2XX3A - -DEPENDNCIES = ['hs2xx3a'] - -HS2XX3ABinarySensor = hs2xx3a_ns.class_('HS2XX3ABinarySensor', binary_sensor.BinarySensor, cg.Component) - -CONFIG_SCHEMA = binary_sensor.BINARY_SENSOR_SCHEMA.extend({ - cv.GenerateID(): cv.declare_id(HS2XX3ABinarySensor) -}).extend(cv.COMPONENT_SCHEMA) - - -def to_code(config): - var = cg.new_Pvariable(config[CONF_ID]) - yield cg.register_component(var, config) - yield binary_sensor.register_binary_sensor(var, config) \ No newline at end of file diff --git a/components/hs2xx3a/binary_sensor/hs2xx3a_binary_sensor.cpp b/components/hs2xx3a/binary_sensor/hs2xx3a_binary_sensor.cpp deleted file mode 100644 index f222bf9..0000000 --- a/components/hs2xx3a/binary_sensor/hs2xx3a_binary_sensor.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "esphome/core/log.h" -#include "hs2xx3a_binary_sensor.h" - -namespace esphome { -namespace hs2xx3a { - -static const char *TAG = "hs2xx3a.binary_sensor"; - -void HS2XX3ABinarySensor::setup() { - -} - -void HS2XX3ABinarySensor::update() { - -} - -void HS2XX3ABinarySensor::dump_config() { - ESP_LOGCONFIG(TAG, "HS2XX3A binary sensor"); -} - -} //namespace hs2xx3a -} //namespace esphome \ No newline at end of file diff --git a/components/hs2xx3a/binary_sensor/hs2xx3a_binary_sensor.h b/components/hs2xx3a/binary_sensor/hs2xx3a_binary_sensor.h deleted file mode 100644 index 81361f7..0000000 --- a/components/hs2xx3a/binary_sensor/hs2xx3a_binary_sensor.h +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once - -#include "../hs2xx3a.h" -#include "esphome/core/component.h" -#include "esphome/components/binary_sensor/binary_sensor.h" - -namespace esphome { -namespace hs2xx3a { - -class HS2XX3ABinarySensor : public binary_sensor::BinarySensor, public PollingComponent { - public: - void setup() override; - void update() override; - void dump_config() override; -}; - -} //namespace hs2xx3a -} //namespace esphome \ No newline at end of file diff --git a/components/hs2xx3a/hs2xx3a.cpp b/components/hs2xx3a/hs2xx3a.cpp deleted file mode 100644 index 3e5f670..0000000 --- a/components/hs2xx3a/hs2xx3a.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "esphome/core/log.h" -#include "hs2xx3a.h" - -namespace esphome { -namespace hs2xx3a { - -static const char *TAG = "hs2xx3a.component"; - -void HS2XX3A::setup() { - -} - -void HS2XX3A::loop() { - -} - -void HS2XX3A::dump_config(){ - ESP_LOGCONFIG(TAG, "HS2xx3A component"); -} - -} // namespace hs2xx3a -} // namespace esphome \ No newline at end of file diff --git a/components/hs2xx3a/hs2xx3a.h b/components/hs2xx3a/hs2xx3a.h deleted file mode 100644 index 6e45548..0000000 --- a/components/hs2xx3a/hs2xx3a.h +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once - -#include "esphome/core/component.h" -#include "esphome/components/uart/uart.h" - -namespace esphome { -namespace hs2xx3a { - -class HS2XX3A : public uart::UARTDevice, public Component { - public: - void setup() override; - void loop() override; - void dump_config() override; -}; - - -} // namespace hs2xx3a -} // namespace esphome \ No newline at end of file