def source(self):
        """Name of the current input source."""
        if self.app_name in self._vars.get('sources_via_apps', []):
            return self.app_name
        return super().source
Name of the current input source.
custom_components/xiaomi_miot/media_player.py