mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
70_BOTVAC.pm: made vendor name case insensitive
git-svn-id: https://svn.fhem.de/fhem/trunk@18492 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
792fc3277c
commit
5985111921
@ -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: 70_BOTVAC: vendor name is no longer case sensitive
|
||||||
- feature: 49_SSCam: V8.8.0, send snapshots integrated by telegram
|
- feature: 49_SSCam: V8.8.0, send snapshots integrated by telegram
|
||||||
- change: 93_DbRep: running though tableCurrentFillup if database is closed
|
- change: 93_DbRep: running though tableCurrentFillup if database is closed
|
||||||
- new: 70_BOTVAC: initial release
|
- new: 70_BOTVAC: initial release
|
||||||
|
@ -125,19 +125,19 @@ sub Define($$) {
|
|||||||
my $interval = 85;
|
my $interval = 85;
|
||||||
|
|
||||||
if (defined($a[3])) {
|
if (defined($a[3])) {
|
||||||
if ($a[3] =~ /^(neato|vorwerk)$/) {
|
if (lc($a[3]) =~ /^(neato|vorwerk)$/) {
|
||||||
$vendor = $a[3];
|
$vendor = $1;
|
||||||
$interval = $a[4] if (defined($a[4]));
|
$interval = $a[4] if (defined($a[4]));
|
||||||
} elsif ($a[3] =~ /^[0-9]+$/ and not defined($a[4])) {
|
} elsif ($a[3] =~ /^[0-9]+$/ and not defined($a[4])) {
|
||||||
$interval = $a[3];
|
$interval = $a[3];
|
||||||
} else {
|
} else {
|
||||||
StorePassword($hash, $a[3]);
|
StorePassword($hash, $a[3]);
|
||||||
if (defined($a[4])) {
|
if (defined($a[4])) {
|
||||||
if ($a[4] =~ /^(neato|vorwerk)$/) {
|
if (lc($a[4]) =~ /^(neato|vorwerk)$/) {
|
||||||
$vendor = $a[4];
|
$vendor = $1;
|
||||||
$interval = $a[5] if (defined($a[5]));
|
$interval = $a[5] if (defined($a[5]));
|
||||||
} else {
|
} else {
|
||||||
$interval = $a[5];
|
$interval = $a[4];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user