mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +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:
parent
15b6b0b8c7
commit
5a7ac8672e
@ -1,5 +1,6 @@
|
||||
# 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.
|
||||
- bugfix: 88_HMCCU: Fixed device definition bug.
|
||||
- bugfix: 88_HMCCU: Fixed shutdown bug.
|
||||
- bugfix: 32_withings: API endpoint change to Nokia servers
|
||||
- feature: 93_DbRep: V8.0.0, restoreMySQL for clientSide dumps implemented
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# Version 4.3
|
||||
# Version 4.3.001
|
||||
#
|
||||
# (c) 2018 zap (zap01 <at> t-online <dot> de)
|
||||
#
|
||||
@ -123,7 +123,7 @@ sub HMCCUCHN_Define ($@)
|
||||
while (defined ($arg)) {
|
||||
return $usage if ($n == 3);
|
||||
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; }
|
||||
$n++;
|
||||
$arg = shift @$a;
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# Version 4.3
|
||||
# Version 4.3.001
|
||||
#
|
||||
# (c) 2018 zap (zap01 <at> t-online <dot> de)
|
||||
#
|
||||
@ -126,7 +126,7 @@ sub HMCCUDEV_Define ($@)
|
||||
# Parse optional command line parameters
|
||||
foreach my $arg (@$a) {
|
||||
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; }
|
||||
else { return $usage; }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user