mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
98_weekprofile: fix see msg437657
check if channel is a numeric value git-svn-id: https://svn.fhem.de/fhem/trunk@11226 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c16c995224
commit
2110049fb5
@ -65,7 +65,10 @@ sub weekprofile_getDeviceType($;$)
|
||||
return undef;
|
||||
}
|
||||
|
||||
my $channel = $devHash->{chanNo} + 0;
|
||||
my $channel = $devHash->{chanNo};
|
||||
return unless ($channel =~ /^\d+?$/);
|
||||
|
||||
my $channel += 0;
|
||||
#Log 2, "weekprofile_getDeviceType: $devHash->{NAME}, $model, $channel";
|
||||
|
||||
$type = "CUL_HM" if ( ($model =~ m/.*HM-CC-RT.*/) && ($channel == 4) );
|
||||
|
Loading…
Reference in New Issue
Block a user