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

driver/power: Add support for Gude 87-1210-18 #1534

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

SmithChart
Copy link
Member

@SmithChart SmithChart commented Oct 30, 2024

Description

The Gude Expert Power Control 87-1210-18 is a vertical 20 port power
distribution unit:
https://gude-systems.com/en/products/expert-power-control-87-1210/

It uses the same HTTP-API, as the Gude Power Control 8031 - but simply
has more ports.
This PR adds support and documentation for this device.

While I am on it: Re-format the file with ruff and replace the Windows Line-Endings.

Change has been tested locally against a Gude 87-1210-18.

Checklist

  • Documentation for the feature
  • Tests for the feature
  • The arguments and description in doc/configuration.rst have been updated
  • Add a section on how to use the feature to doc/usage.rst
  • Add a section on how to use the feature to doc/development.rst
  • PR has been tested
  • Man pages have been regenerated

This file has been created with CRLF, but all other files in this repo
seem to be LF-only.
This changes the line-ending of the file to LF-only.

Signed-off-by: Chris Fiege <cfi@pengutronix.de>
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 56.6%. Comparing base (71bfcd2) to head (af5a3bf).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
labgrid/driver/power/gude8031.py 0.0% 15 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1534     +/-   ##
========================================
- Coverage    56.6%   56.6%   -0.1%     
========================================
  Files         168     168             
  Lines       13033   13033             
========================================
- Hits         7385    7384      -1     
- Misses       5648    5649      +1     
Flag Coverage Δ
3.10 56.6% <0.0%> (ø)
3.11 56.6% <0.0%> (ø)
3.12 56.6% <0.0%> (ø)
3.13 56.6% <0.0%> (ø)
3.9 ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jluebbe jluebbe left a comment

Choose a reason for hiding this comment

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

Just a few typos in the commit messages, looks good otherwise.

Signed-off-by: Chris Fiege <cfi@pengutronix.de>
The Gude Expert Power Control 87-1210-18 is a vertical 20 port power
distribution unit:
https://gude-systems.com/en/products/expert-power-control-87-1210/

It uses the same HTTP-API, as the Gude Power Control 8031 - but simply
has more ports.
This commit adds support and documentation for this device.

Loosing the restrictions on the `index` makes it possible to re-use this
driver.

Setting a non-existent port fails silently.
But getting a non-existent port will cause an exception.
I deem this behavior acceptable, since a new device will be tested
during hardware setup anyway.
So we do not need to check the actual number of ports during normal
operation.

Signed-off-by: Chris Fiege <cfi@pengutronix.de>
@SmithChart
Copy link
Member Author

Updated the commit messages as suggested.

@jluebbe jluebbe merged commit 57ab45e into labgrid-project:master Oct 30, 2024
9 of 11 checks passed
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.

3 participants