We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 288d9d7 commit e118841Copy full SHA for e118841
custom_components/tibber_data/sensor.py
@@ -101,6 +101,8 @@ def _handle_coordinator_update(self) -> None:
101
grid_price = self.coordinator.data.get("grid_price", {}).get(
102
dt_util.now().replace(minute=0, second=0, microsecond=0)
103
)
104
+ if grid_price is None:
105
+ return
106
price = self.coordinator.get_price_at(dt_util.now())
107
native_value = (
108
grid_price + price - self.coordinator.data["est_subsidy"]
0 commit comments