2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

HMCCU: Device definition bug fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@17343 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
zap 2018-09-14 12:45:21 +00:00
parent 15b6b0b8c7
commit 5a7ac8672e
3 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it. # Do not insert empty lines here, update check depends on it.
- bugfix: 88_HMCCU: Fixed device definition bug.
- bugfix: 88_HMCCU: Fixed shutdown bug. - bugfix: 88_HMCCU: Fixed shutdown bug.
- bugfix: 32_withings: API endpoint change to Nokia servers - bugfix: 32_withings: API endpoint change to Nokia servers
- feature: 93_DbRep: V8.0.0, restoreMySQL for clientSide dumps implemented - feature: 93_DbRep: V8.0.0, restoreMySQL for clientSide dumps implemented

View File

@ -4,7 +4,7 @@
# #
# $Id$ # $Id$
# #
# Version 4.3 # Version 4.3.001
# #
# (c) 2018 zap (zap01 <at> t-online <dot> de) # (c) 2018 zap (zap01 <at> t-online <dot> de)
# #
@ -123,7 +123,7 @@ sub HMCCUCHN_Define ($@)
while (defined ($arg)) { while (defined ($arg)) {
return $usage if ($n == 3); return $usage if ($n == 3);
if ($arg eq 'readonly') { $hash->{statevals} = $arg; } if ($arg eq 'readonly') { $hash->{statevals} = $arg; }
elsif ($arg eq 'defaults' && !$init_done) { HMCCU_SetDefaults ($hash); } elsif ($arg eq 'defaults' && $init_done) { HMCCU_SetDefaults ($hash); }
else { return $usage; } else { return $usage; }
$n++; $n++;
$arg = shift @$a; $arg = shift @$a;

View File

@ -4,7 +4,7 @@
# #
# $Id$ # $Id$
# #
# Version 4.3 # Version 4.3.001
# #
# (c) 2018 zap (zap01 <at> t-online <dot> de) # (c) 2018 zap (zap01 <at> t-online <dot> de)
# #
@ -126,7 +126,7 @@ sub HMCCUDEV_Define ($@)
# Parse optional command line parameters # Parse optional command line parameters
foreach my $arg (@$a) { foreach my $arg (@$a) {
if ($arg eq 'readonly') { $hash->{statevals} = $arg; } if ($arg eq 'readonly') { $hash->{statevals} = $arg; }
elsif ($arg eq 'defaults' && !$init_done) { HMCCU_SetDefaults ($hash); } elsif ($arg eq 'defaults' && $init_done) { HMCCU_SetDefaults ($hash); }
elsif ($arg =~ /^[0-9]+$/) { $attr{$name}{statechannel} = $arg; } elsif ($arg =~ /^[0-9]+$/) { $attr{$name}{statechannel} = $arg; }
else { return $usage; } else { return $usage; }
} }