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

Update ZNCZ01ZM and PTX-TK3/M converters #1049

Merged
merged 4 commits into from
May 7, 2023

Conversation

dixon777
Copy link
Contributor

States updates and events sent by DEVICE have to be processed by CONVERTER before reaching ENTITY.
MathConv (CONVERTER) multiplies all values come from DEVICE by its attribute "multiply" before passing them to XiaomiNumber (ENTITY). However, XiaomiNumber attributes "_attr_native_min_value", "_attr_native_max_value" and "_attr_native_step_value" are directly acquired from MathConv attributes "min", "max" and "step" and did not account for the effect of MathConv attribute "multiply". This commit is to fix this issue as well as make sure the previously defined devices will be working as previously with this update.

@AlexxIT AlexxIT merged commit 4622ee1 into AlexxIT:master May 7, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented May 7, 2023

Thanks!

AlexxIT added a commit that referenced this pull request May 7, 2023
@AlexxIT AlexxIT self-assigned this May 7, 2023
@AlexxIT AlexxIT added this to the v3.2.2 milestone May 7, 2023
@AlexxIT AlexxIT changed the title Include Mathconv.multiply for defining XiaomiNumber min max step attr Update ZNCZ01ZM and PTX-TK3/M converters Jun 12, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jun 12, 2023

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