Moved SoftwareSeriel to the .py files

This commit is contained in:
Nicolas Bachschwell 2024-05-02 12:17:43 +02:00
parent 5e89b866b4
commit 8ed0efd32c
Signed by: NBSgamesAT
GPG Key ID: 2D73288FF7AEED2F
3 changed files with 6 additions and 5 deletions

View File

@ -15,4 +15,6 @@ CONFIG_SCHEMA = cover.COVER_SCHEMA.extend({
def to_code(config):
var = cg.new_Pvariable(config[CONF_ID])
yield cg.register_component(var, config)
yield cover.register_cover(var, config)
yield cover.register_cover(var, config)
cg.add_library("plerup/EspSoftwareSerial", "8.2.0")

View File

@ -19,4 +19,6 @@ def to_code(config):
yield output.register_output(var, config)
callback = yield cg.get_variable(config[CONF_STATE_CALLBACK])
cg.add(var.set_state_callback(callback))
cg.add(var.set_state_callback(callback))
cg.add_library("plerup/EspSoftwareSerial", "8.2.0")

View File

@ -6,9 +6,6 @@ esphome:
platform: ESP32
board: esp32dev
libraries:
- plerup/EspSoftwareSerial
ota:
password: !secret gd_passwd
api: