Skip to content

WIP: Songpal sound mode support#14718

Closed
rytilahti wants to merge 10 commits intohome-assistant:devfrom
rytilahti:songpal_sound_mode
Closed

WIP: Songpal sound mode support#14718
rytilahti wants to merge 10 commits intohome-assistant:devfrom
rytilahti:songpal_sound_mode

Conversation

@rytilahti
Copy link
Copy Markdown
Member

Description:

Implement sound mode support for songpal

Related issue (if applicable): fixes #

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>

Example entry for configuration.yaml (if applicable):

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

try:
soundfields = await self.dev.get_soundfield()
self._soundmodes = {x.value:x.title for x in soundfields.candidate}
self._active_soundmode = self._soundmodes[soundfields.currentValue]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

line too long (83 > 79 characters)


try:
soundfields = await self.dev.get_soundfield()
self._soundmodes = {x.value:x.title for x in soundfields.candidate}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

missing whitespace after ':'
line too long (83 > 79 characters)

self._sources = inputs


try:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

too many blank lines (2)

"""Return device specific state attributes."""
attributes = {}
if self._sound_mode_raw is not None and self._sound_mode_support\
and self._power == 'ON':
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

continuation line over-indented for visual indent

@balloob balloob closed this Sep 21, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
@rytilahti rytilahti deleted the songpal_sound_mode branch October 22, 2019 19:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants