ranczo-energy-usage-scrapers/EnergyPriceProvider/TauronG11Provider.py
Bartosz Wieczorek 166d64d51e init
2025-09-02 18:14:05 +02:00

14 lines
443 B
Python

from __future__ import annotations
from EnergyPrice import EnergyPriceBase
from utils.calendar_pl import gov_energy_prices_shield
class TauronG11Provider(EnergyPriceBase):
def __init__(self, **kwargs):
super().__init__(**kwargs)
def rate(self, ts):
if gov_energy_prices_shield(ts):
return 0.62/1.23
else:
raise RuntimeError("brak danych dla nie tarczy, trzeba ogarnąć")