original_docstring: Return the state attributes of the generic device.
docstring: Return the state attributes of the generic device.
docstring_tokens: Return the state attributes of the generic device .
code: def device_state_attributes(self):
          """Return the state attributes of the generic device."""
          attr = super().device_state_attributes
          if self._device.currentPowerConsumption > 0.05:
              attr[ATTR_POWER_CONSUMPTION] = \
                  round(self._device.currentPowerConsumption, 2)
          attr[ATTR_ENERGY_COUNTER] = round(self._device.energyCounter, 2)
          return attr
code_tokens: def device_state_attributes ( self ) : attr = super ( ) . device_state_attributes if self . _device . currentPowerConsumption > 0.05 : attr [ ATTR_POWER_CONSUMPTION ] = round ( self . _device . currentPowerConsumption , 2 ) attr [ ATTR_ENERGY_COUNTER ] = round ( self . _device . energyCounter , 2 ) return attr
short_docstring: Return the state attributes of the generic device.
short_docstring_tokens: Return the state attributes of the generic device .
comment: """Return the state attributes of the generic device."""