@staticmethod
def build_details_dict(r: dict) ->dict:
    """Build details dictionary from API response."""
    return {'active_time': r.get('activeTime', 0), 'energy': r.get('energy',
        0), 'night_light_status': r.get('nightLightStatus', None),
        'night_light_brightness': r.get('nightLightBrightness', None),
        'night_light_automode': r.get('nightLightAutomode', None), 'power':
        r.get('power', 0), 'voltage': r.get('voltage', 0)}
