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

Rolling up main to beta #1113

Merged
merged 7 commits into from
Dec 12, 2023
Merged

Rolling up main to beta #1113

merged 7 commits into from
Dec 12, 2023

Conversation

greens
Copy link
Contributor

@greens greens commented Dec 12, 2023

No description provided.

cjswedes and others added 7 commits December 11, 2023 13:09
The current way we parse the SSDP response headers can cause failures
in discovering Sonos speakers with unicode characters that require
more than one byte for their representation, such as CJK characters.

The current parsing patterns use the '`%g`' character class, which does
not parse characters that don't fit in a single byte; while Lua itself
is utf-8 compatible and it is safe to use multi-code-point graphemes or
clusters in Lua strings, the actual string library is byte-oriented for
many operations and the pattern used currently tries to match each byte
against the provided class.

'`.-`' works here instead, as it matches all bytes in a non-greedy way
(akin to '`.*?`' in PCRE).
Add profile to support 6-button matter button devices. This
means 6-button devieces will be supported as MCD rather than
parent-child.
…on-profile

Matter Button: add 6-button static profile support
Previous approach could have potentially accepted invalid headers. This
tweaks the parsing pattern to fail to find headers that don't coform to
the actual accepted structure of a header key.
Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

github-actions bot commented Dec 12, 2023

Channel deleted.

Copy link

Test Results

     55 files  ±0     347 suites  ±0   0s ⏱️ ±0s
1 633 tests ±0  1 633 ✔️ +1  0 💤 ±0  0  - 1 
2 861 runs  ±0  2 861 ✔️ +1  0 💤 ±0  0  - 1 

Results for commit c8038a4. ± Comparison against base commit 28fca37.

Copy link

matter-button_coverage.xml

File Coverage
All files 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-button/src/init.lua 92%

zwave-smoke-alarm_coverage.xml

File Coverage
All files 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-button/src/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-smoke-alarm/src/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-smoke-alarm/src/preferences.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-smoke-alarm/src/fibaro-smoke-sensor/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-smoke-alarm/src/zwave-smoke-co-alarm-v2/fibaro-co-sensor-zw5/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-smoke-alarm/src/apiv6_bugfix/init.lua 87%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against c8038a4

@greens greens merged commit 308acfe into beta Dec 12, 2023
31 checks passed
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.

4 participants