mirror of
https://github.com/esphome/esphome.git
synced 2025-06-25 17:53:08 +01:00
Updates for 1.13 (#546)
* Update CI matcher * Check Executable bit * Quicklint * Updates * Allow pm1.0 and pm10.0 for PMS5003ST Fixes https://github.com/esphome/feature-requests/issues/225 * PowerSupplyRequester * Lint * Include debug data in generated main.cpp * Updates * Auto-select bit_depth * Updates
This commit is contained in:
.travis.yml
esphome
__main__.pycodegen.pyconfig.pyconfig_validation.pyconst.py
components
binary_sensor
ble_presence
esp8266_pwm
fastled_base
integration
ledc
light
neopixelbus
output
pmsx003
power_supply
sun
time
core
core_config.pycpp_generator.pydashboard
script
tests
@ -4,7 +4,6 @@ from __future__ import print_function
|
||||
import codecs
|
||||
import collections
|
||||
import fnmatch
|
||||
import functools
|
||||
import os.path
|
||||
import subprocess
|
||||
import sys
|
||||
@ -155,6 +154,28 @@ def lint_pragma_once(content):
|
||||
return None
|
||||
|
||||
|
||||
@lint_content_find_check('ESP_LOG', include=['*.h', '*.tcc'], exclude=[
|
||||
'esphome/components/binary_sensor/binary_sensor.h',
|
||||
'esphome/components/cover/cover.h',
|
||||
'esphome/components/display/display_buffer.h',
|
||||
'esphome/components/i2c/i2c.h',
|
||||
'esphome/components/mqtt/mqtt_component.h',
|
||||
'esphome/components/output/binary_output.h',
|
||||
'esphome/components/output/float_output.h',
|
||||
'esphome/components/sensor/sensor.h',
|
||||
'esphome/components/stepper/stepper.h',
|
||||
'esphome/components/switch/switch.h',
|
||||
'esphome/components/text_sensor/text_sensor.h',
|
||||
'esphome/core/component.h',
|
||||
'esphome/core/esphal.h',
|
||||
'esphome/core/log.h',
|
||||
'tests/custom.h',
|
||||
])
|
||||
def lint_log_in_header():
|
||||
return ('Found reference to ESP_LOG in header file. Using ESP_LOG* in header files '
|
||||
'is currently not possible - please move the definition to a source file (.cpp)')
|
||||
|
||||
|
||||
errors = collections.defaultdict(list)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user