Introducing a media_player component for Yamaha Multicast devices#9258
Conversation
|
Hello @jalmeroth, When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es). The commits that are missing a linked GitHub account are the following:
Unfortunately, we are unable to accept this pull request until this situation is corrected. Here are your options:
We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community. Thanks, I look forward to checking this PR again soon! ❤️ |
|
@jalmeroth, thanks for your PR! By analyzing the history of the files in this pull request, we identified @balloob, @fabaff and @happyleavesaoc to be potential reviewers. |
|
|
||
| def set_volume_level(self, volume): | ||
| """Set volume level, range 0..1.""" | ||
| _LOGGER.debug("Volume level: {} / {}".format(volume, volume * self._volumeMax)) |
| # updateStatus_timer was set before | ||
| if self._mcDevice.updateStatus_timer: | ||
| _LOGGER.debug("is_alive: {}".format(self._mcDevice.updateStatus_timer.is_alive())) | ||
| # can happen if e.g. computer was suspended, while hass was running |
| else: # call from regular polling | ||
| # updateStatus_timer was set before | ||
| if self._mcDevice.updateStatus_timer: | ||
| _LOGGER.debug("is_alive: {}".format(self._mcDevice.updateStatus_timer.is_alive())) |
| def update(self): | ||
| _LOGGER.debug("update: {}".format(self.entity_id)) | ||
|
|
||
| if not self.entity_id: # call from constructor setup_platform() |
|
|
||
| @property | ||
| def media_image_url(self): | ||
| return self._media_status.media_image_url if self._media_status else None |
|
|
||
| @property | ||
| def media_duration(self): | ||
| return self._media_status.media_duration if self._media_status else None |
|
Hello @jalmeroth, When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es). The commits that are missing a linked GitHub account are the following:
Unfortunately, we are unable to accept this pull request until this situation is corrected. Here are your options:
We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community. Thanks, I look forward to checking this PR again soon! ❤️ |
|
Hi @jalmeroth, 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! |
* Added Geofency device tracker Added Geofency device tracker * fix pylint error * review fixes * merge coroutines
|
this pull request also includes geofency support, which is nice but most likely will be rejected unless being in a separate pr. |
This reverts commit c240d90.
|
Whoops, thanks for the heads-up @runningman84. Obviously something went wrong with the rebasing. |
| @property | ||
| def state(self): | ||
| """Return the state of the device.""" | ||
| result = None |
There was a problem hiding this comment.
if self.power == STATE_ON and self.status is not STATE_UNKNOWN:
return self.status
return self.power
There was a problem hiding this comment.
thanks for your comment, @andrey-git. I will commit this change.
|
|
||
| @property | ||
| def media_content_type(self): | ||
| """Return the media content type.""" |
There was a problem hiding this comment.
just return self.media_status
There was a problem hiding this comment.
self.media_status is the whole object incl. artist, etc.. But I guess returning MEDIA_TYPE_MUSIC would be sufficient
Thanks to comments from @andrey-git
|
Thanks! |
Description:
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#3295
Example entry for
configuration.yaml(if applicable):Checklist:
If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
toxrun successfully. Your PR cannot be merged unless tests passREQUIREMENTSvariable (example).requirements_all.txtby runningscript/gen_requirements_all.py..coveragerc.If the code does not interact with devices:
toxrun successfully. Your PR cannot be merged unless tests pass