Skip to content

MPD small improvements#9301

Merged
balloob merged 3 commits into
home-assistant:devfrom
pdanilew:dev
Sep 14, 2017
Merged

MPD small improvements#9301
balloob merged 3 commits into
home-assistant:devfrom
pdanilew:dev

Conversation

@pdanilew
Copy link
Copy Markdown
Contributor

@pdanilew pdanilew commented Sep 4, 2017

Description:

Restores power button for MPD and adds mute + volume step buttons in details window.

Checklist:

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

  • Documentation added/updated in home-assistant.github.io
    Not required. Internal changes.

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
    Tested on RPI3.

  • New dependencies have been added to the REQUIREMENTS variable (example).
    None.

  • New dependencies are only imported inside functions that use them (example).
    None.

  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
    None.

  • New files were added to .coveragerc.
    None.

@homeassistant
Copy link
Copy Markdown
Contributor

Hi @pdanilew,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@mention-bot
Copy link
Copy Markdown

@pdanilew, thanks for your PR! By analyzing the history of the files in this pull request, we identified @StevenLooman, @fabaff and @armills to be potential reviewers.

PLAYLIST_UPDATE_INTERVAL = timedelta(seconds=120)

SUPPORT_MPD = SUPPORT_PAUSE | SUPPORT_VOLUME_SET | \
SUPPORT_MPD = SUPPORT_PAUSE | SUPPORT_VOLUME_SET | SUPPORT_VOLUME_STEP | SUPPORT_VOLUME_MUTE | \
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 (96 > 79 characters)

"""Return the media state."""
if self._status is None:
return STATE_OFF
self.update()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will cause network access in property

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated + corrected auto check things.

@pdanilew
Copy link
Copy Markdown
Contributor Author

pdanilew commented Sep 7, 2017

Corrected all issues.

@pvizeli
Copy link
Copy Markdown
Member

pvizeli commented Sep 11, 2017

@balloob is that okay to fake mute function that not exists on device api or should that implement into device api (python-mpd2)?

@pdanilew
Copy link
Copy Markdown
Contributor Author

There is no turn off option either. Does it mean this device should be only start/stop?

@balloob
Copy link
Copy Markdown
Member

balloob commented Sep 14, 2017

It's okay to implement fake mute in here.

@balloob balloob merged commit f5dee2c into home-assistant:dev Sep 14, 2017
@balloob
Copy link
Copy Markdown
Member

balloob commented Sep 14, 2017

Thanks! And congratulations on your first merged PR! 🎉 🐬

@balloob balloob mentioned this pull request Sep 22, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Mar 3, 2018
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.

7 participants