esphome-tuya-curtain
esphome-tuya-curtain copied to clipboard
Custom components have been removed in esphome
this section no longer works and needs to be converted to external_components https://esphome.io/guides/contributing#a-note-about-custom-components
i'm currently trying to figure it out, but its out of my knowledge set at the moment.
cover:
- platform: custom
lambda: |-
auto curtain = new CustomCurtain();
App.register_component(curtain);
return {curtain};
covers:
- name: Curtain device_class: blind
custom_component:
- lambda: |- return { new CustomAPI() };