Moved SoftwareSeriel to the .py files
This commit is contained in:
parent
5e89b866b4
commit
8ed0efd32c
@ -16,3 +16,5 @@ def to_code(config):
|
|||||||
var = cg.new_Pvariable(config[CONF_ID])
|
var = cg.new_Pvariable(config[CONF_ID])
|
||||||
yield cg.register_component(var, config)
|
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")
|
@ -20,3 +20,5 @@ def to_code(config):
|
|||||||
|
|
||||||
callback = yield cg.get_variable(config[CONF_STATE_CALLBACK])
|
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")
|
@ -6,9 +6,6 @@ esphome:
|
|||||||
platform: ESP32
|
platform: ESP32
|
||||||
board: esp32dev
|
board: esp32dev
|
||||||
|
|
||||||
libraries:
|
|
||||||
- plerup/EspSoftwareSerial
|
|
||||||
|
|
||||||
ota:
|
ota:
|
||||||
password: !secret gd_passwd
|
password: !secret gd_passwd
|
||||||
api:
|
api:
|
||||||
|
Loading…
Reference in New Issue
Block a user