fix last_illuminance with 0 if no light can cause na in ha.

This commit is contained in:
Screek Worshop 2023-08-23 18:04:46 +08:00 committed by GitHub
parent c399570894
commit 276ff4e8a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
# This is a custom firmware for Human Presence Sensor 2A
# https://screek.io/2a
# https://docs.screek.io/2a
# Current version synchronized with public version: V230818_2_beta
esphome:
@ -59,7 +59,7 @@ globals:
- id: last_illuminance
type: float
restore_value: no
initial_value: "0"
initial_value: "-1"
improv_serial: