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

oh-stepper: Fix NaN shown for Item state with unit & Fix unable to control Item with NaN state #2137

Merged
merged 3 commits into from
Nov 2, 2023

Conversation

florian-h05
Copy link
Contributor

@florian-h05 florian-h05 commented Oct 14, 2023

@florian-h05 florian-h05 added bug Something isn't working main ui Main UI labels Oct 14, 2023
@relativeci
Copy link

relativeci bot commented Oct 14, 2023

Job #1209: Bundle Size — 15.79MiB (+0.2%).

cff8b33(current) vs b7270d2 main#1158(baseline)

Warning

Bundle contains 16 duplicate packages – View duplicate packages

Warning

Bundle introduced 13 new packages: @jsep-plugin/regex, @jsep-plugin/arrow, @jsep-plugin/object and 10 more – View changed packages

Bundle metrics  Change 10 changes Regression 5 regressions Improvement 1 improvement
                 Current
Job #1209
     Baseline
Job #1158
Regression  Initial JS 1.85MiB(+10.95%) 1.67MiB
Regression  Initial CSS 608.95KiB(+0.01%) 608.89KiB
Change  Cache Invalidation 93.81% 93.95%
Change  Chunks 217(-0.91%) 219
Change  Assets 683(-0.87%) 689
Change  Modules 2987(+75.71%) 1700
Regression  Duplicate Modules 173(+92.22%) 90
Improvement  Duplicate Code 1.61%(-17.44%) 1.95%
Regression  Packages 152(+10.14%) 138
Regression  Duplicate Packages 16(+6.67%) 15
Bundle size by type  Change 3 changes Regression 3 regressions
                 Current
Job #1209
     Baseline
Job #1158
Regression  JS 9.28MiB (+0.24%) 9.25MiB
Regression  Other 4.74MiB (+0.19%) 4.73MiB
Regression  CSS 860.19KiB (+0.08%) 859.49KiB
Not changed  Fonts 526.1KiB 526.1KiB
Not changed  Media 295.6KiB 295.6KiB
Not changed  IMG 140.74KiB 140.74KiB
Not changed  HTML 1.23KiB 1.23KiB

View job #1209 reportView florian-h05:oh-stepper-nan branch activity

@florian-h05 florian-h05 changed the title Fix oh-stepper cannot control Item if state is NaN oh-stepper: Fix NaN shown for Item state containing unit and unable to control Item when NaN is displayed Oct 15, 2023
@florian-h05 florian-h05 changed the title oh-stepper: Fix NaN shown for Item state containing unit and unable to control Item when NaN is displayed oh-stepper: Fix NaN shown for Item state containing unit and unable to control Item when NaN is shown Oct 15, 2023
@florian-h05 florian-h05 changed the title oh-stepper: Fix NaN shown for Item state containing unit and unable to control Item when NaN is shown oh-stepper: Fix NaN shown for Item state containing unit & Fix unable to control Item when NaN is shown Oct 15, 2023
@florian-h05 florian-h05 marked this pull request as ready for review October 15, 2023 13:31
@florian-h05 florian-h05 requested a review from a team as a code owner October 15, 2023 13:31
@florian-h05 florian-h05 changed the title oh-stepper: Fix NaN shown for Item state containing unit & Fix unable to control Item when NaN is shown oh-stepper: Fix NaN shown for Item state with unit & Fix unable to control Item when NaN is shown Oct 15, 2023
@florian-h05 florian-h05 changed the title oh-stepper: Fix NaN shown for Item state with unit & Fix unable to control Item when NaN is shown oh-stepper: Fix NaN shown for Item state with unit & Fix unable to control Item with NaN state Oct 15, 2023
@apella12
Copy link

This fix worked for me. I had a number with units that was not being handled correctly in the stepper card. https://community.openhab.org/t/openhab-4-1-0-m2-oh-stepper-not-working-properly/150372/4

Thanks for the quick action.

@EngiNearEngiFar
Copy link
Contributor

I also applied the fix provided here
and it fixed the problem for me as well. I am on OH4.1.0 M2.

@DrRSatzteil
Copy link

Works for me 👍

@kaikreuzer kaikreuzer merged commit 060c14e into openhab:main Nov 2, 2023
5 checks passed
@kaikreuzer kaikreuzer added this to the 4.1 milestone Nov 2, 2023
@florian-h05 florian-h05 deleted the oh-stepper-nan branch November 2, 2023 20:56
florian-h05 added a commit that referenced this pull request Nov 2, 2023
…control Item with NaN state (#2137)

Regression from #2090.

Reported on the community, see
https://community.openhab.org/t/openhab-4-1-0-m2-oh-stepper-not-working-properly/150372?u=florian-h05.

---------

Signed-off-by: Florian Hotze <[email protected]>
(cherry picked from commit 060c14e)
@florian-h05 florian-h05 added the patch A PR that has been cherry-picked to a patch release branch label Nov 2, 2023
@florian-h05
Copy link
Contributor Author

@kaikreuzer I have just cherry-picked this. Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI patch A PR that has been cherry-picked to a patch release branch regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants