1
0
mirror of https://github.com/esphome/esphome.git synced 2025-07-11 17:43:13 +01:00

Bump ruff from 0.9.2 to 0.11.0 ()

This commit is contained in:
dependabot[bot]
2025-03-20 09:51:23 -10:00
committed by GitHub
parent 6ea89644e7
commit 4adda632bb
651 changed files with 1962 additions and 2270 deletions
.pre-commit-config.yaml
docker
esphome/components
a01nyub
a02yyuw
a4988
absolute_humidity
ac_dimmer
adalight
adc128s102
addressable_light
ade7880
ade7953_base
ade7953_i2c
ade7953_spi
ads1115
ads1118
ags10
aht10
airthings_ble
airthings_wave_base
airthings_wave_mini
airthings_wave_plus
alpha3
am2315c
am2320
am43
analog_threshold
anova
apds9306
apds9960
as3935
as3935_i2c
as3935_spi
as5600
as7341
at581x
atc_mithermometer
b_parasite
ballu
bang_bang
bedjet
beken_spi_led_strip
bh1750
binary
binary_sensor_map
bl0939
bl0940
ble_client
sensor
text_sensor
bluetooth_proxy
bme280_base
bme280_i2c
bme280_spi
bme680
bme680_bsec
bmi160
bmp085
bmp280_base
bmp280_i2c
bmp280_spi
bmp3xx_base
bmp3xx_i2c
bmp3xx_spi
bmp581
bp1658cj
bp5758d
canbus
cap1188
captive_portal
ccs811
cd74hc4067
climate_ir
climate_ir_lg
color
color_temperature
combination
coolix
copy
cs5460a
cse7761
cse7766
cst226
touchscreen
ct_clamp
current_based
cwww
dac7678
daikin
daikin_arc
daikin_brc
dallas_temp
daly_bms
dashboard_import
debug
deep_sleep
delonghi
demo
dfplayer
dfrobot_sen0395
dht
dht12
dps310
ds1307
dsmr
duty_cycle
duty_time
e131
ee895
ektf2232
touchscreen
emc2101
emmeti
endstop
ens160_base
ens160_i2c
ens160_spi
ens210
esp32_camera
esp32_camera_web_server
esp32_dac
esp32_hall
esp32_touch
esp8266_pwm
ethernet
exposure_notifications
external_components
ezo
ezo_pmp
factory_reset
fastled_base
fastled_clockless
fastled_spi
feedback
fingerprint_grow
fs3000
ft5x06
touchscreen
ft63x6
fujitsu_general
gcja5
gdk101
globals
gp2y1010au0f
gp8403
gpio
binary_sensor
one_wire
output
switch
gps
graph
grove_tb6612fng
growatt_solar
gt911
binary_sensor
haier
binary_sensor
button
sensor
switch
text_sensor
havells_solar
hbridge
hdc1080
he60r
heatpumpir
hitachi_ac344
hitachi_ac424
hlw8012
hm3301
hmc5883l
homeassistant
honeywell_hih_i2c
honeywellabp
honeywellabp2_i2c
host
hrxl_maxsonar_wr
hte501
http_request
htu21d
htu31d
hx711
hydreon_rgxx
hyt271
i2c_device
i2s_audio
media_player
iaqcore
ina219
ina226
ina260
ina2xx_base
ina2xx_i2c
ina2xx_spi
ina3221
inkbird_ibsth1_mini
inkplate6
integration
internal_temperature
interval
jsn_sr04t
kamstrup_kmp
key_collector
kmeteriso
kuntze
lcd_base
lcd_gpio
lcd_menu
lcd_pcf8574
ld2410
ld2420
ld2450
ledc
libretiny
libretiny_pwm
lightwaverf
lilygo_t5_47
touchscreen
ltr390
ltr501
ltr_als_ps
m5stack_8angle
matrix_keypad
binary_sensor
max31855
max31865
max44009
max6675
max6956
max7219
max7219digit
max9611
mcp23008
mcp23016
mcp23017
mcp23s08
mcp23s17
mcp23xxx_base
mcp2515
mcp3008
mcp3204
mcp4725
mcp4728
mcp47a1
mcp9808
mhz19
micronova
microphone
midea
midea_ir
mitsubishi
mlx90614
mmc5603
mmc5983
modbus
modbus_controller
monochromatic
mopeka_ble
mopeka_pro_check
mopeka_std_check
mpl3115a2
mpr121
mpu6050
mpu6886
mqtt_subscribe
sensor
text_sensor
ms5611
ms8607
my9231
neopixelbus
nextion
binary_sensor
sensor
switch
text_sensor
noblex
ntc
opentherm
output
partition
pca6416a
pca9554
pca9685
pcf85063
pcf8563
pcf8574
pid
pipsolar
pm1006
pmsa003i
pmsx003
pmwcs3
pn532
pn532_i2c
pn532_spi
pn7150
pn7150_i2c
pn7160
pn7160_i2c
pn7160_spi
power_supply
prometheus
psram
pulse_counter
pulse_meter
pulse_width
pvvx_mithermometer
pylontech
pzem004t
pzemac
pzemdc
qmc5883l
qmp6988
qr_code
qwiic_pir
radon_eye_ble
radon_eye_rd200
rc522
rc522_i2c
rc522_spi
rdm6300
resistance
restart
rf_bridge
rgb
rgbct
rgbw
rgbww
rotary_encoder
rp2040_pio
rp2040_pio_led_strip
rp2040_pwm
rtttl
ruuvi_ble
ruuvitag
safe_mode
scd30
scd4x
script
sdl
sdm_meter
sdp3x
sds011
seeed_mr24hpc1
seeed_mr60bha2
seeed_mr60fda2
selec_meter
sen0321
sen21231
senseair
sensirion_common
servo
sfa30
sgp4x
shelly_dimmer
sht3xd
sht4x
shtcx
shutdown
sigma_delta_output
sim800l
slow_pwm
sm10bit_base
sm16716
sm2135
sm2235
sm2335
sm300d2
sml
smt100
sn74hc165
sn74hc595
socket
sonoff_d1
speed
sprinkler
sps30
ssd1306_i2c
ssd1322_base
ssd1325_base
ssd1327_base
ssd1327_i2c
ssd1331_base
ssd1351_base
st7567_base
st7567_i2c
st7920
statsd
status
status_led
stepper
sts3x
substitutions
sun
sun_gtil2
sx1509
t6615
tca9548a
tcl112
tcs34725
tee501
teleinfo
tem3200
template
time_based
tlc59208f
tlc5947
tlc5971
tm1621
tm1637
tm1651
tmp102
tmp1075
tmp117
tof10120
tormatic
toshiba
total_daily_energy
tsl2561
tsl2591
tt21100
binary_sensor
touchscreen
ttp229_bsf
ttp229_lsf
tuya
tx20
uart
ufire_ise
uln2003
ultrasonic
uponor_smatrix
vbus
veml3235
veml7700
version
vl53l0x
web_server_base
web_server_idf
weikai
whirlpool
whynter
wireguard
wk2132_i2c
wk2132_spi
wk2168_i2c
wk2168_spi
wk2204_i2c
wk2204_spi
wk2212_i2c
wk2212_spi
wl_134
wled
x9c
xgzp68xx
xiaomi_ble
xiaomi_cgd1
xiaomi_cgdk2
xiaomi_cgg1
xiaomi_cgpr1
xiaomi_gcls002
xiaomi_hhccjcy01
xiaomi_hhccjcy10
xiaomi_hhccpot002
xiaomi_jqjcy01ym
xiaomi_lywsd02
xiaomi_lywsd02mmc
xiaomi_lywsd03mmc
xiaomi_lywsdcgq
xiaomi_mhoc303
xiaomi_mhoc401
xiaomi_miscale
xiaomi_mjyd02yla
xiaomi_mue4094rt
xiaomi_rtcgq02lm
xiaomi_wx08zm
xl9535
yashima
zhlt01
zio_ultrasonic
zyaura
requirements_test.txt
script
tests

@ -85,8 +85,8 @@ def load_components():
# pylint: disable=wrong-import-position
from esphome.const import CONF_TYPE, KEY_CORE, KEY_TARGET_PLATFORM
from esphome.core import CORE
from esphome.const import CONF_TYPE, KEY_CORE, KEY_TARGET_PLATFORM # noqa: E402
from esphome.core import CORE # noqa: E402
# pylint: enable=wrong-import-position
@ -95,13 +95,13 @@ load_components()
# Import esphome after loading components (so schema is tracked)
# pylint: disable=wrong-import-position
from esphome import automation, pins
from esphome.components import remote_base
import esphome.config_validation as cv
import esphome.core as esphome_core
from esphome.helpers import write_file_if_changed
from esphome.loader import CORE_COMPONENTS_PATH, get_platform
from esphome.util import Registry
from esphome import automation, pins # noqa: E402
from esphome.components import remote_base # noqa: E402
import esphome.config_validation as cv # noqa: E402
import esphome.core as esphome_core # noqa: E402
from esphome.helpers import write_file_if_changed # noqa: E402
from esphome.loader import CORE_COMPONENTS_PATH, get_platform # noqa: E402
from esphome.util import Registry # noqa: E402
# pylint: enable=wrong-import-position
@ -614,9 +614,9 @@ def build_schema():
if platform_manifest is not None:
output[platform][S_COMPONENTS][domain] = {}
if len(platform_manifest.dependencies) > 0:
output[platform][S_COMPONENTS][domain][
"dependencies"
] = platform_manifest.dependencies
output[platform][S_COMPONENTS][domain]["dependencies"] = (
platform_manifest.dependencies
)
register_module_schemas(
f"{domain}.{platform}", platform_manifest.module, platform_manifest
)