mirror of
https://github.com/esphome/esphome.git
synced 2026-07-11 09:25:34 +00:00
c2b2aaddd1
Only advance last_heater_millis_ after the heater command succeeds so a failed write retries on the next cycle instead of silently skipping. Add heater settings to the test YAML to ensure CI exercises the heater code path.
14 lines
270 B
YAML
14 lines
270 B
YAML
sensor:
|
|
- platform: sht4x
|
|
i2c_id: i2c_bus
|
|
temperature:
|
|
name: SHT4X Temperature
|
|
humidity:
|
|
name: SHT4X Humidity
|
|
address: 0x44
|
|
precision: High
|
|
heater_max_duty: 0.02
|
|
heater_power: High
|
|
heater_time: Long
|
|
update_interval: 15s
|