Commit e0a3d01
Fix #3: Preserve gas_daily_kwh sensor on reboot or no new data
When there is no new GRDF data or on reboot, the gas_daily_kwh sensor was disappearing.
Now it preserves the last known value by reading it from Home Assistant and updating the sensor.
This ensures the sensor remains available even when no new data is received.1 parent aa5ac16 commit e0a3d01
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3515 | 3515 | | |
3516 | 3516 | | |
3517 | 3517 | | |
| 3518 | + | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
3518 | 3548 | | |
3519 | 3549 | | |
3520 | 3550 | | |
| |||
0 commit comments