Initil after Upgrade

This commit is contained in:
2026-06-15 10:53:52 -04:00
parent 2fe9bf0dd6
commit 887feaa50a
143 changed files with 2288 additions and 881 deletions
@@ -1,5 +1,6 @@
from __future__ import annotations
from collections.abc import Callable
from decimal import Decimal
from homeassistant.core import HomeAssistant, State
@@ -28,5 +29,8 @@ class PowerCalculationStrategyInterface:
"""Return if this strategy is enabled based on entity state."""
return True
def set_update_callback(self, update_callback: Callable[[Decimal], None]) -> None:
"""Register update callback to allow strategy to push power updates."""
async def on_start(self, hass: HomeAssistant) -> None:
"""Called after HA has started"""