Initil after Upgrade
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user