FRM_RGB: stateFormat

git-svn-id: https://svn.fhem.de/fhem/trunk@4174 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess
2013-11-08 00:06:51 +00:00
parent 5e3d56afd4
commit 0940ca934f

View File

@@ -86,7 +86,7 @@ FRM_RGB_Init($$)
}
$hash->{PINS} = \@pins;
if (! (defined AttrVal($name,"stateFormat",undef))) {
$attr{$name}{"stateFormat"} = "value";
$attr{$name}{"stateFormat"} = "rgb";
}
my $value = ReadingsVal($name,"rgb",undef);
if (defined $value and AttrVal($hash->{NAME},"restoreOnReconnect","on") eq "on") {