mirror of
https://github.com/esphome/esphome.git
synced 2025-07-16 03:53:08 +01:00
Add generate home assistant config command (#208)
* Add generate home assistant config command * Lint * Lint
This commit is contained in:
esphomeyaml
__main__.py
components
binary_sensor
__init__.pyesp32_ble_tracker.pyesp32_touch.pygpio.pynextion.pypn532.pyrdm6300.pyremote_receiver.pystatus.pytemplate.py
cover
fan
light
mqtt.pysensor
__init__.pyadc.pyads1115.pybh1750.pyble_rssi.pybme280.pybme680.pybmp085.pybmp280.pycse7766.pydallas.pydht.pydht12.pyduty_cycle.pyesp32_hall.pyhdc1080.pyhlw8012.pyhmc5883l.pyhtu21d.pyhx711.pyina219.pyina3221.pymax6675.pymhz19.pympu6050.pymqtt_subscribe.pyms5611.pypmsx003.pypulse_counter.pyrotary_encoder.pysht3xd.pytcs34725.pytemplate.pytsl2561.pyultrasonic.pyuptime.pywifi_signal.pyxiaomi_miflora.pyxiaomi_mijia.py
switch
text_sensor
dashboard
espota2.py@ -19,3 +19,8 @@ def to_code(config):
|
||||
rhs = App.make_binary_light(config[CONF_NAME], output)
|
||||
light_struct = variable(config[CONF_MAKE_ID], rhs)
|
||||
light.setup_light(light_struct.Pstate, light_struct.Pmqtt, config)
|
||||
|
||||
|
||||
def to_hass_config(data, config):
|
||||
return light.core_to_hass_config(data, config, brightness=False, rgb=False, color_temp=False,
|
||||
white_value=False)
|
||||
|
Reference in New Issue
Block a user