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 pglab integration #109725

Open
wants to merge 134 commits into
base: dev
Choose a base branch
from

Conversation

pglab-electronics
Copy link

@pglab-electronics pglab-electronics commented Feb 5, 2024

Breaking change

Proposed change

Add pglab integration. The integration allows to interact with PG LAB Electronics devices over MQTT.

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)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

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
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format 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.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
  • Untested files have been added to .coveragerc.

To help with the load of incoming pull requests:

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @pgaraventa,@pglab-electronics

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!

@home-assistant
Copy link

home-assistant bot commented Feb 5, 2024

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @pgaraventa,@pglab-electronics

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!

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @pgaraventa

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!

@pglab-electronics pglab-electronics marked this pull request as ready for review February 5, 2024 15:53
@home-assistant home-assistant bot dismissed stale reviews from themself February 5, 2024 15:53

Stale

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @pgaraventa

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!

@home-assistant home-assistant bot marked this pull request as draft February 5, 2024 16:20
@pglab-electronics pglab-electronics marked this pull request as ready for review February 5, 2024 16:20
CODEOWNERS Outdated Show resolved Hide resolved
homeassistant/components/pglab/__init__.py Show resolved Hide resolved
homeassistant/components/pglab/entity.py Show resolved Hide resolved
@emontnemery emontnemery closed this Nov 7, 2024
@emontnemery emontnemery reopened this Nov 7, 2024
@emontnemery
Copy link
Contributor

(Close+open to retrigger CI)

@home-assistant home-assistant bot marked this pull request as draft November 7, 2024 10:25
@emontnemery
Copy link
Contributor

If you need some help getting this PR over the finish line, please feel free to contact me on Discord, I'm @emontnemery there.

@emontnemery
Copy link
Contributor

@pglab-electronics looking at your homepage it seems the devices are not for sale and there's also no active DIY community building their own devices. We typically require at least one of these criteria to be fulfilled before adding an integration to the Home Assistant Core repo. Until then, a custom integration installable via HACS might be a better fit.

@pglab-electronics
Copy link
Author

pglab-electronics commented Nov 9, 2024

@pglab-electronics looking at your homepage it seems the devices are not for sale and there's also no active DIY community building their own devices. We typically require at least one of these criteria to be fulfilled before adding an integration to the Home Assistant Core repo. Until then, a custom integration installable via HACS might be a better fit.

PG LAB Electronics S.r.l.s. VAT 02950190997 REA N. GE - 522309 is a new startup based in Chiavari, Italy. The devices (E-BOARD, E-RELAY) should be in sale soon. I'm in phase to update the web site adding online selling. At this moment, who is interested can contact me directly.

I sent a private message over Discord. I'm happy to have a chat to better understand how to finalize this patch.

@pglab-electronics pglab-electronics marked this pull request as ready for review November 10, 2024 15:31
@home-assistant home-assistant bot requested a review from emontnemery November 10, 2024 15:31
Copy link

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days.
If you are the author of this PR, please leave a comment if you want to keep it open. Also, please rebase your PR onto the latest dev branch to ensure that it's up to date with the latest changes.
Thank you for your contribution!

@github-actions github-actions bot added the stale label Jan 12, 2025
@pglab-electronics
Copy link
Author

Please leave the pull request open... still waiting for review.

@github-actions github-actions bot removed the stale label Jan 13, 2025
Comment on lines 36 to 38
if not await mqtt.async_wait_for_mqtt_client(hass):
LOGGER.error("MQTT integration is not available")
return False
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was this check added, async_wait_for_mqtt_client is already called from async_setup_entry?

Copy link
Author

Choose a reason for hiding this comment

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

I had problem during git commit with the automatic check. I implemented as the new "qbus" integration.

Copy link
Author

Choose a reason for hiding this comment

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

Not really sure why... But I don't have anymore problem why the quality checker. I removed the extra mqtt check.

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.

6 participants