Skip to content

Fix SIGNALduino protocol loader#163

Merged
sidey79 merged 2 commits into
masterfrom
codex/fix-protocol-loader
Apr 30, 2026
Merged

Fix SIGNALduino protocol loader#163
sidey79 merged 2 commits into
masterfrom
codex/fix-protocol-loader

Conversation

@sidey79
Copy link
Copy Markdown
Contributor

@sidey79 sidey79 commented Apr 28, 2026

Summary

  • Replace the removed SIGNALduino_LoadProtocolHash call in get TimingsList with the current FHEM::Devices::SIGNALduino::SD_Protocols object API.
  • Preserve the existing timing CSV generation by converting getProtocolList() back into the hash shape the surrounding code expects.
  • Update controls_SD_TOOL.txt and extend the protocol package regression test to reject the removed loader call.

Root Cause

SIGNALduino_LoadProtocolHash is no longer available as main::SIGNALduino_LoadProtocolHash after the move to the RFFHEM protocol package. Calling get TimingsList therefore failed with an undefined subroutine error.

Validation

  • git diff --check
  • Direct protocol package load via FHEM::Devices::SIGNALduino::SD_Protocols: loaded 161 protocols

Not run successfully in this local environment:

  • prove -I/home/sven/git_repos/RFFHEM/lib t/load_protocol_package.t fails before executing tests because Test2::V1 is not installed.
  • perl -I/home/sven/git_repos/RFFHEM/lib -c FHEM/88_SIGNALduino_TOOL.pm fails before checking this change because HttpUtils.pm is not available in the local @INC.

@sidey79 sidey79 changed the title [codex] Fix SIGNALduino protocol loader Fix SIGNALduino protocol loader Apr 28, 2026
@sidey79 sidey79 marked this pull request as ready for review April 28, 2026 21:47
@sidey79 sidey79 linked an issue Apr 28, 2026 that may be closed by this pull request
@sidey79 sidey79 requested a review from elektron-bbs April 28, 2026 21:48
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ed8e9130cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread FHEM/88_SIGNALduino_TOOL.pm Outdated
@sidey79 sidey79 force-pushed the codex/fix-protocol-loader branch 2 times, most recently from eddc366 to 706f252 Compare April 30, 2026 18:20
@sidey79 sidey79 force-pushed the codex/fix-protocol-loader branch from 706f252 to 6326f45 Compare April 30, 2026 18:29
@sidey79 sidey79 merged commit 6700a3c into master Apr 30, 2026
2 checks passed
@sidey79 sidey79 deleted the codex/fix-protocol-loader branch April 30, 2026 19:23
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.

FHEM crashes during "get SIGNALduino_TOOL TimingsList"

3 participants