mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 00:26:03 +00:00
70_ENIGMA2: fix ARRAY ref, forum #14792.msg668593
git-svn-id: https://svn.fhem.de/fhem/trunk@14985 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7fb3a3ede5
commit
ac677af3a4
@ -159,6 +159,11 @@ sub ENIGMA2_Set($@);
|
||||
|
||||
sub ENIGMA2_Set($@) {
|
||||
my ( $hash, $a, $h ) = @_;
|
||||
|
||||
# a is not an array --> make an array out of $a and $h
|
||||
$a = [ $a, $h ]
|
||||
if ( ref($a) ne 'ARRAY' );
|
||||
|
||||
my $name = shift @$a;
|
||||
my $set = shift @$a;
|
||||
my $state = ReadingsVal( $name, "state", "absent" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user