def source(self):
        """Name of the current input source."""
        if self._prop_input:
            val = self._prop_input.from_device(self.device)
            if val is not None:
                return self._prop_input.list_description(val)
        return None
Name of the current input source.
custom_components/xiaomi_miot/media_player.py