mirror of
https://github.com/esphome/esphome.git
synced 2025-07-13 18:43:12 +01:00
Smallish Update
This commit is contained in:
esphomeyaml
__main__.pyautomation.pyconfig.pyconfig_validation.pyconst.pycore.py
components
binary_sensor
cover
deep_sleep.pyesp32_ble_tracker.pylight
output
pn532.pyrdm6300.pyremote_receiver.pyremote_transmitter.pysensor
ble_rssi.pybmp280.pyhmc5883l.pyhx711.pyina219.pyina3221.pymax6675.pymhz19.pyms5611.pytcs34725.pytemplate.pyuptime.pyxiaomi_miflora.pyxiaomi_mijia.py
spi.pystatus_led.pyswitch
uart.pydashboard
helpers.pymqtt.pywriter.pyyaml_util.pyexamples
README.mdcabinet.yamldachboden.yamlheatpump.yamlkuche.yamllebensmittelkeller.yamllivingroom.yamlsonoff_4ch.yamlsonoff_s20.yamlterrasse.yaml
pylintrc@ -2,10 +2,12 @@ import voluptuous as vol
|
||||
|
||||
from esphomeyaml import config_validation as cv
|
||||
from esphomeyaml.const import CONF_ID, CONF_SCAN_INTERVAL, ESP_PLATFORM_ESP32
|
||||
from esphomeyaml.helpers import App, Pvariable, add, esphomelib_ns
|
||||
from esphomeyaml.core import HexInt
|
||||
from esphomeyaml.helpers import App, Pvariable, add, esphomelib_ns, ArrayInitializer
|
||||
|
||||
ESP_PLATFORMS = [ESP_PLATFORM_ESP32]
|
||||
|
||||
CONF_ESP32_BLE_ID = 'esp32_ble_id'
|
||||
ESP32BLETracker = esphomelib_ns.ESP32BLETracker
|
||||
|
||||
CONFIG_SCHEMA = vol.Schema({
|
||||
@ -14,6 +16,11 @@ CONFIG_SCHEMA = vol.Schema({
|
||||
})
|
||||
|
||||
|
||||
def make_address_array(address):
|
||||
addr = [HexInt(i) for i in address.parts]
|
||||
return ArrayInitializer(*addr, multiline=False)
|
||||
|
||||
|
||||
def to_code(config):
|
||||
rhs = App.make_esp32_ble_tracker()
|
||||
ble = Pvariable(config[CONF_ID], rhs)
|
||||
|
Reference in New Issue
Block a user