@staticmethod
def build_energy_dict(r: dict) ->dict:
    """Build energy dictionary from API response."""
    return {'energy_consumption_of_today': r.get('energyConsumptionOfToday',
        0), 'cost_per_kwh': r.get('costPerKWH', 0), 'max_energy': r.get(
        'maxEnergy', 0), 'total_energy': r.get('totalEnergy', 0),
        'currency': r.get('currency', 0), 'data': r.get('data', 0)}
