mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
MYSENSORS: fix qw warning, #117312
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23460 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ec9812c564
commit
dd35d20b28
@ -68,39 +68,44 @@ sub Initialize {
|
||||
$hash->{SetFn} = \&Set;
|
||||
$hash->{AttrFn} = \&Attr;
|
||||
|
||||
my @attrList = qw(
|
||||
autocreate:1
|
||||
requestAck:1
|
||||
first-sensorid
|
||||
last-sensorid
|
||||
stateFormat
|
||||
OTA_firmwareConfig
|
||||
disable:0,1
|
||||
my @attrList = (
|
||||
'disable:0,1',
|
||||
qw(
|
||||
autocreate:1
|
||||
requestAck:1
|
||||
first-sensorid
|
||||
last-sensorid
|
||||
stateFormat
|
||||
OTA_firmwareConfig
|
||||
)
|
||||
);
|
||||
$hash->{AttrList} = $hash->{AttrList} = join(" ", @attrList);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
BEGIN {GP_Import(qw(
|
||||
init_done
|
||||
defs
|
||||
CommandDefine
|
||||
CommandModify
|
||||
CommandAttr
|
||||
gettimeofday
|
||||
readingsSingleUpdate
|
||||
DevIo_OpenDev
|
||||
DevIo_SimpleWrite
|
||||
DevIo_SimpleRead
|
||||
DevIo_CloseDev
|
||||
RemoveInternalTimer
|
||||
InternalTimer
|
||||
AttrVal
|
||||
Log3
|
||||
FileRead
|
||||
IsDisabled
|
||||
))};
|
||||
BEGIN { GP_Import(
|
||||
qw(
|
||||
init_done
|
||||
defs
|
||||
CommandDefine
|
||||
CommandModify
|
||||
CommandAttr
|
||||
gettimeofday
|
||||
readingsSingleUpdate
|
||||
DevIo_OpenDev
|
||||
DevIo_SimpleWrite
|
||||
DevIo_SimpleRead
|
||||
DevIo_CloseDev
|
||||
RemoveInternalTimer
|
||||
InternalTimer
|
||||
AttrVal
|
||||
Log3
|
||||
FileRead
|
||||
IsDisabled
|
||||
)
|
||||
)
|
||||
};
|
||||
|
||||
my %sensorAttr = (
|
||||
LIGHT => ['setCommands on:V_LIGHT:1 off:V_LIGHT:0' ],
|
||||
|
Loading…
x
Reference in New Issue
Block a user