mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 09:55:38 +00:00
AutomowerConnectDevice: fix hosthash
git-svn-id: https://svn.fhem.de/fhem/trunk@27134 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1eb99eee0c
commit
655b5b1998
@ -244,7 +244,7 @@ sub Notify {
|
||||
if ( grep /^state:.connected$/, @{$events} ) {
|
||||
|
||||
my $maxMower = 0;
|
||||
$maxMower = @{$hash->{helper}{mowers}} if ( ref ( $hash->{helper}{mowers} ) eq 'ARRAY' );
|
||||
$maxMower = @{$hosthash->{helper}{mowers}} if ( ref ( $hosthash->{helper}{mowers} ) eq 'ARRAY' );
|
||||
if ($maxMower <= $mowerNumber || $mowerNumber < 0 ) {
|
||||
|
||||
Log3 $name, 2, "$iam wrong mower number $mowerNumber ($maxMower mower available). Change definition of $name.";
|
||||
|
Loading…
x
Reference in New Issue
Block a user