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 {Match} regex for Hideki Module #1071

Merged
merged 10 commits into from
Jan 25, 2022
Merged

Update {Match} regex for Hideki Module #1071

merged 10 commits into from
Jan 25, 2022

Conversation

sidey79
Copy link
Contributor

@sidey79 sidey79 commented Jan 23, 2022

  • Please check if the PR fulfills these requirements
  • Tests for the changes have been added / modified (needed for for bug fixes / features)
  • commandref has been added / updated (needed for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
  • Bugfix (please link issue)
  • Feature enhancement
  • Documentation update
  • Unittest enhancement
  • other
  • What is the current behavior?
    (You can also link to an open issue here, if this describes the current behavior)

Sensors with less data like temperature only, are not matched by the {Match} regex.
As from FHEM Revision @25489 upwards, the .clientArray is no longer used for dispatch if a module is already loaded.

  • What is the new behavior (if this is a feature change)?

The {Match} regex accepts messages with less data, so the data will also be dispatched after the module has been loaded.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No

  • Other information:

The {Match} regex is complied once the module is initalized and not for every check it's used by fhem

sidey79 and others added 6 commits January 23, 2022 20:51
- Prüfung ergänzt, welche dmsg gegen den Match eintrag verifiziert
- Match Regex angepasst
- Subs als Coderef hinterlegt
- ParseData Test mit Testdaten hinterlegt
- Weitere Testdaten ergänzt
Modul {Match} als Regex und nicht als string scalar speichern.
@sidey79 sidey79 added the Hideki label Jan 23, 2022
@codecov
Copy link

codecov bot commented Jan 23, 2022

Codecov Report

Merging #1071 (1e4cf1d) into master (05cbfcf) will increase coverage by 1.38%.
The diff coverage is 90.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1071      +/-   ##
==========================================
+ Coverage   62.18%   63.56%   +1.38%     
==========================================
  Files         126      128       +2     
  Lines        9340     9363      +23     
  Branches     1476     1477       +1     
==========================================
+ Hits         5808     5952     +144     
+ Misses       2431     2280     -151     
- Partials     1101     1131      +30     
Flag Coverage Δ
fhem 55.13% <90.90%> (+1.59%) ⬆️
modules 63.56% <90.90%> (+1.38%) ⬆️
perl 91.85% <ø> (+0.21%) ⬆️
unittests 63.56% <90.90%> (+1.38%) ⬆️

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

Impacted Files Coverage Δ
t/FHEM/14_Hideki/09_ParseData.t 88.88% <88.88%> (ø)
FHEM/14_Hideki.pm 50.93% <100.00%> (+46.26%) ⬆️
t/FHEM/10_SD_GT/00_load.t 100.00% <0.00%> (ø)
FHEM/lib/SD_Protocols.pm 79.81% <0.00%> (+0.57%) ⬆️
FHEM/00_SIGNALduino.pm 64.10% <0.00%> (+0.64%) ⬆️
FHEM/10_SD_Rojaflex.pm 71.13% <0.00%> (+2.43%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05cbfcf...1e4cf1d. Read the comment docs.

@sidey79 sidey79 linked an issue Jan 23, 2022 that may be closed by this pull request
@sidey79 sidey79 added this to the 3.5.4 milestone Jan 23, 2022
@sidey79 sidey79 self-assigned this Jan 23, 2022
@sidey79 sidey79 marked this pull request as draft January 23, 2022 20:45
@sidey79
Copy link
Contributor Author

sidey79 commented Jan 23, 2022

Warte auf #1065

@sidey79 sidey79 marked this pull request as ready for review January 24, 2022 20:37
@sidey79 sidey79 merged commit 93392fe into master Jan 25, 2022
@sidey79 sidey79 deleted the hideki-match branch January 25, 2022 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hideki Match Regex
3 participants