Fix custom output, add test

Fixes https://github.com/esphome/issues/issues/346
This commit is contained in:
Otto Winter
2019-05-27 09:58:55 +02:00
parent 510e53de70
commit dac624231f
3 changed files with 27 additions and 0 deletions

View File

@@ -377,6 +377,22 @@ output:
id: out
pin: D3
frequency: 50Hz
- platform: custom
type: binary
lambda: |-
auto s = new CustomBinaryOutput();
App.register_component(s);
return {s};
outputs:
- id: custom_binary
- platform: custom
type: float
lambda: |-
auto s = new CustomFloatOutput();
App.register_component(s);
return {s};
outputs:
- id: custom_float
mcp23017:
id: mcp