Skip to content

Add remote control platform to Panasonic Viera#42275

Closed
joogps wants to merge 6 commits into
home-assistant:devfrom
joogps:panasonic-viera-remote
Closed

Add remote control platform to Panasonic Viera#42275
joogps wants to merge 6 commits into
home-assistant:devfrom
joogps:panasonic-viera-remote

Conversation

@joogps
Copy link
Copy Markdown
Contributor

@joogps joogps commented Oct 23, 2020

Proposed change

This pull request adds the remote entity to the Panasonic Viera integration (with send_command support, for both default and custom keys) and defines default manufacturer and model number values, fixing possible future issues with TVs that (for some reason) don't return all device_info properties (as seen here #42205, thanks @tomlut!). I'm also adding remote tests and two new config flow cases to increase code coverage (maybe I should make separate PRs? 🤔) (that happened)

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example entry for configuration.yaml:

# Example configuration.yaml

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

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

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

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

To help with the load of incoming pull requests:

@joogps
Copy link
Copy Markdown
Contributor Author

joogps commented Oct 24, 2020

thks @jking95!

Comment thread homeassistant/components/panasonic_viera/const.py Outdated
@joogps joogps requested a review from dgomes October 25, 2020 00:34
@balloob
Copy link
Copy Markdown
Member

balloob commented Oct 26, 2020

@joogps would you be able to extract the device info fixes out of this PR and into a new PR which can be included in the upcoming 0.117 release?

return None
if self._device_info is None:
return None
return self._device_info[ATTR_UDN]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is still a UUID in the response by Tom, isn't that the same as UDN ?

Copy link
Copy Markdown
Contributor Author

@joogps joogps Oct 27, 2020

Choose a reason for hiding this comment

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

actually the problem was that his TV apparently has no model number explicit in the descriptor file
so I just set a bunch of default values in case they can't be found

the unique id was ok (I think)

@joogps
Copy link
Copy Markdown
Contributor Author

joogps commented Oct 26, 2020

@balloob sure! i was actually already kind of planning to do that, haha

@balloob
Copy link
Copy Markdown
Member

balloob commented Oct 26, 2020

Can you do it in the next 24 hours ? Please tag me when you make the PR.

@joogps
Copy link
Copy Markdown
Contributor Author

joogps commented Oct 27, 2020

@balloob just created the pr #42441
srry for the inconvenience, haha

@joogps joogps deleted the panasonic-viera-remote branch October 27, 2020 10:05
Thomas55555 pushed a commit to Thomas55555/core that referenced this pull request Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants