diff options
| author | manuel <manuel@mausz.at> | 2025-11-26 10:56:48 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2025-11-26 10:56:48 +0100 |
| commit | dde2a2cc33de1b1e01935a2a528d51df01e0f812 (patch) | |
| tree | 04e95f135612d69942c761e7c166ee541d46a2f8 /esphome/config/my_components/mycc1101/__init__.py | |
| parent | 87cb3b04a3a0895e6d9adb486516d76ecc49bfad (diff) | |
| download | arduino-master.tar.gz arduino-master.tar.bz2 arduino-master.zip | |
Diffstat (limited to 'esphome/config/my_components/mycc1101/__init__.py')
| -rw-r--r-- | esphome/config/my_components/mycc1101/__init__.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/esphome/config/my_components/mycc1101/__init__.py b/esphome/config/my_components/mycc1101/__init__.py new file mode 100644 index 0000000..14261fb --- /dev/null +++ b/esphome/config/my_components/mycc1101/__init__.py | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | import esphome.codegen as cg | ||
| 2 | from esphome.components import spi, remote_base | ||
| 3 | import esphome.config_validation as cv | ||
| 4 | from esphome.const import CONF_ID, CONF_PROTOCOL, CONF_CODE | ||
| 5 | from esphome.components import cc1101 | ||
| 6 | from types import FunctionType | ||
| 7 | |||
| 8 | cc1101.MULTI_CONF_NO_DEFAULT = True | ||
| 9 | AUTO_LOAD = ["cc1101"] | ||
| 10 | DEPENDENCIES = cc1101.DEPENDENCIES | ||
| 11 | |||
| 12 | ns = cg.esphome_ns.namespace("cc1101") | ||
| 13 | MyCC1101Component = ns.class_("MyCC1101Component", cc1101.CC1101Component)#, cg.Component, spi.SPIDevice) | ||
| 14 | |||
| 15 | CONFIG_SCHEMA = cc1101.CONFIG_SCHEMA.extend( | ||
| 16 | { | ||
| 17 | cv.GenerateID(): cv.declare_id(MyCC1101Component), | ||
| 18 | } | ||
| 19 | ) | ||
| 20 | |||
| 21 | to_code = cc1101.to_code | ||
| 22 | |||
