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 Giex GX04 Soil Sensor #3412

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

prairiesnpr
Copy link
Contributor

Proposed change

Add Giex GX04 Soil Moisture Probe

image

Additional information

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works

Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.74%. Comparing base (fa0d9fa) to head (b0a42ab).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #3412      +/-   ##
==========================================
+ Coverage   88.72%   88.74%   +0.01%     
==========================================
  Files         306      306              
  Lines        9813     9830      +17     
==========================================
+ Hits         8707     8724      +17     
  Misses       1106     1106              

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

@TheJulianJES TheJulianJES added new quirk Adds support for a new device Tuya Request/PR regarding a Tuya device v2 quirk Quirks using v2 API. Might add custom entities that need translation keys in HA. labels Oct 10, 2024
Comment on lines +511 to +517
attributes = TuyaMCUCluster.attributes.copy()
attributes.update(
{
BATTERY_STAT_ATTR: ("battery_status", GiexBatteryStatus, True),
TEMP_SW_ATTR: ("temp_cf_switch", GiexTempEnum, True),
}
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ideally, we'd use the new AttributeDefs, but I do see that the TuyaMCUCluster isn't converted yet. Are there any attributes on that cluster?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new quirk Adds support for a new device Tuya Request/PR regarding a Tuya device v2 quirk Quirks using v2 API. Might add custom entities that need translation keys in HA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants