Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "source_list_template" and "select_source" action features. #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CDaxi
Copy link

@CDaxi CDaxi commented May 16, 2023

This pull request will add the functionality to define the source_list via template and provides the select_source action to handle the source change event.

From my point of view, it will solve the Issue #33.

I have updated the readme.md file and simplified it to enable easy copy and paste to the configuration.yaml.
The documentation is done via comments and can be removed or kept by the user.

Kind regards,
CDaxi

@@ -201,7 +207,7 @@ async def _async_create_entities(hass, config):
current_sound_mode_template = device_config.get(CURRENT_SOUND_MODE_TEMPLATE)

media_players.append(
MediaPlayerTemplate(
MediaPlayerTemplateDaxi(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename back to MediaPlayerTemplate 🙂

@@ -247,7 +255,7 @@ async def _async_create_entities(hass, config):
return media_players


class MediaPlayerTemplate(TemplateEntity, MediaPlayerEntity):
class MediaPlayerTemplateDaxi(TemplateEntity, MediaPlayerEntity):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants