@property
def device_state_attributes(self) -> Dict[(str, Any)]:
    'Return the state attributes of the generic device.'
    state_attr = super().device_state_attributes
    current_power_w = self._device.currentPowerConsumption
    if (current_power_w > 0.05):
        state_attr[ATTR_CURRENT_POWER_W] = round(current_power_w, 2)
    state_attr[ATTR_TODAY_ENERGY_KWH] = round(self._device.energyCounter, 2)
    return state_attr
Return the state attributes of the generic device.
@property
def device_state_attributes(self) -> Dict[(str, Any)]:
    
    state_attr = super().device_state_attributes
    current_power_w = self._device.currentPowerConsumption
    if (current_power_w > 0.05):
        state_attr[ATTR_CURRENT_POWER_W] = round(current_power_w, 2)
    state_attr[ATTR_TODAY_ENERGY_KWH] = round(self._device.energyCounter, 2)
    return state_attr