Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Fehlede Eingabe Validierung führt zu Warninungs

Open
#95 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
perl
Domain
backend

Research direction

Start in lib/FHEM/Automation/ShuttersControl/Helper.pm around line 929 and trace how BlockingTimeAfterManual is parsed and compared. Reproduce the warning with the reported 0:20 value, then inspect the related attribute handling to determine where validation belongs. Done means invalid input is verified or rejected without producing the numeric-comparison warning.

Written by the indexing model from the issue text.

Description

Ich habe 0:20 - 20 Minuten - für BlockingTimeAfterManual hinterlegt.

Das führ zu einem Warning:
PERL WARNING: Argument "0:20" isn't numeric in numeric lt (<) at lib/FHEM/Automation/ShuttersControl/Helper.pm line 924.
In Version # $Id: Helper.pm 23934 2021-03-12 12:19:50Z CoolTux $

Ich nehme an, im Master branch entspricht das folgender Zeile:

https://github.com/fhem/AutoShuttersControl/blob/2012ec1fc303d7330dfa22f14353642fe1b1f35d/lib/FHEM/Automation/ShuttersControl/Helper.pm#L929

Offensichtlich ist nicht vogesehen, dass in dem Feld eine Stunden:Minuten Angabe getätigt wird, dennoch wird der Parameter aber beim Eingeben angenommen.
Ich würde eine Validierung der Parameter empfehlen, dann könnten zumindest keine Fehlerhaften eingegeben werden.

Aus Sicht der Lib, wäre es aber auch wünschenswert, dass es eine Verifizierung gibt,

Dominant language
Perl
Stars
9
Forks
7
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fhem/AutoShuttersControl

All issues in fhem/AutoShuttersControl

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.