mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 02:51:29 +00:00
[sht4x] Move timestamp update after successful command, add heater test
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.
This commit is contained in:
@@ -6,4 +6,8 @@ sensor:
|
||||
humidity:
|
||||
name: SHT4X Humidity
|
||||
address: 0x44
|
||||
precision: High
|
||||
heater_max_duty: 0.02
|
||||
heater_power: High
|
||||
heater_time: Long
|
||||
update_interval: 15s
|
||||
|
||||
Reference in New Issue
Block a user