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

Add device information, media player entities, some refactoring #4

Merged
merged 9 commits into from
Sep 10, 2024

Conversation

Jalle19
Copy link
Contributor

@Jalle19 Jalle19 commented Sep 9, 2024

Trying a new approach regarding connection handling, i.e. use ephemeral connections to fetch data. This way we don't need to handle reconnects etc.

Copy link
Contributor

@Esgrove Esgrove left a comment

Choose a reason for hiding this comment

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

Some optional suggestions but otherwise looks good to me (not that familiar with the internals of home assistant)

custom_components/vinx/__init__.py Outdated Show resolved Hide resolved
custom_components/vinx/__init__.py Outdated Show resolved Hide resolved
custom_components/vinx/config_flow.py Show resolved Hide resolved
custom_components/vinx/media_player.py Outdated Show resolved Hide resolved
custom_components/vinx/media_player.py Show resolved Hide resolved
custom_components/vinx/media_player.py Show resolved Hide resolved
custom_components/vinx/media_player.py Show resolved Hide resolved
@Jalle19
Copy link
Contributor Author

Jalle19 commented Sep 9, 2024

Thanks for the thorough review, I'll incorporate some of the suggested changes! Like you suspected, some stuff is done in a particular way because that's how Home Assistant expects you to do it. I'm by no means an expert on making these integrations either though, so there may be more than one way to do things.

@Jalle19
Copy link
Contributor Author

Jalle19 commented Sep 10, 2024

Will do a smoke test before merging

@Jalle19 Jalle19 merged commit 643a835 into main Sep 10, 2024
1 check passed
@Jalle19 Jalle19 deleted the more-work branch September 10, 2024 07:07
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