code: def power_source_str(self):
          
          if DeviceInfo.ATTR_POWER_SOURCE not in self.raw:
              return None
          return DeviceInfo.VALUE_POWER_SOURCES.get(self.power_source, 'Unknown')
docs: String representation of current power source.