-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Update tuya translation for reverse energy sensor #149317
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
Conversation
Hey there @tuya, @zlinoliver, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
f5154cb
to
a7c342d
Compare
…iatant-core into feature/translation-key
99d80a5
to
2fac1b4
Compare
…iatant-core into feature/translation-key
@epenet Please help review this very minor PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Congratulations @zzysszzy on your first PR
Thanks a lot for your review and guidance on my first PR~~ |
Breaking change
This change updates the entity name for the reverse energy sensor in Tuya zndb smart meters from "Total energy" to "Total production". Users may need to update any automations or dashboards that reference the old entity name.
Proposed change
This PR improves the naming clarity for Tuya zndb smart meter reverse energy sensors. The current implementation uses the generic
total_energy
translation key for theREVERSE_ENERGY_TOTAL
sensor, which can cause confusion when smart meters have both energy consumption and energy production sensors.The change updates the translation key from
"total_energy"
to"total_production"
for the reverse energy sensor in zndb category devices. This provides clearer distinction between energy consumed from the grid versus energy produced/fed back to the grid (e.g., from solar panels).Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: