mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
Better error message
git-svn-id: https://svn.fhem.de/fhem/trunk@1505 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dc77c79152
commit
e6c9a00dbc
@ -4,7 +4,6 @@ package main;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
|
||||
my %codes = (
|
||||
"00" => "off",
|
||||
"01" => "dim06%",
|
||||
@ -142,7 +141,7 @@ FS20_SetState($$$$)
|
||||
my $name = $hash->{NAME};
|
||||
(undef, $val) = ReplaceEventMap($name, [$name, $val], 0)
|
||||
if($attr{$name}{eventMap});
|
||||
return "Undefined value $val" if(!defined($fs20_c2b{$val}));
|
||||
return "setstate $name: undefined value $val" if(!defined($fs20_c2b{$val}));
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user