Commit 5973143
committed
fix: follow established callback pattern for MonthlySpent sensor
- Remove custom _handle_coordinator_update method
- Use async_write_ha_state directly as callback (matches all other sensors)
- Move processing logic to native_value property (lazy evaluation)
- Follows the established pattern used by 40+ other sensors in codebase1 parent 670e50d commit 5973143
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | 557 | | |
564 | 558 | | |
565 | 559 | | |
| 560 | + | |
| 561 | + | |
566 | 562 | | |
567 | 563 | | |
568 | 564 | | |
| |||
581 | 577 | | |
582 | 578 | | |
583 | 579 | | |
584 | | - | |
| 580 | + | |
585 | 581 | | |
586 | 582 | | |
587 | 583 | | |
| |||
0 commit comments