mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
10_FBDECT.pm: fix lastpressedtimestamp issues (Forum #119693)
git-svn-id: https://svn.fhem.de/fhem/trunk@24009 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d77b3fc8f0
commit
eb20006129
@ -452,7 +452,7 @@ FBDECT_ParseHttp($$$)
|
|||||||
my ($txt,$h,$ln) = (@_);
|
my ($txt,$h,$ln) = (@_);
|
||||||
$txt =~ s#<([^/\s>]+?)[^/]*?>(.*?)</\g1>#
|
$txt =~ s#<([^/\s>]+?)[^/]*?>(.*?)</\g1>#
|
||||||
my ($n,$c) = ($1,$2);
|
my ($n,$c) = ($1,$2);
|
||||||
$ln = makeReadingName($1) if($n eq "name" && $c =~ m/: (.*)$/);
|
$ln = makeReadingName($1) if($n eq "name" && $c =~ m/:\s*([^\s]*)$/);
|
||||||
if($n eq "lastpressedtimestamp" && $ln) {
|
if($n eq "lastpressedtimestamp" && $ln) {
|
||||||
$h->{"${n}_$ln"} = ($c =~ m/^\d{10}$/ ? FmtDateTime($c) : "N/A");
|
$h->{"${n}_$ln"} = ($c =~ m/^\d{10}$/ ? FmtDateTime($c) : "N/A");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user