98_weekprofile: fix log ccutype not defined (forum #1113306)

git-svn-id: https://svn.fhem.de/fhem/trunk@23404 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Risiko
2020-12-22 17:05:41 +00:00
parent 04fa264714
commit 329c8a5d24
2 changed files with 3 additions and 2 deletions

View File

@@ -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: 98_weekprofile: Log ccutype not defined (forum #1113306)
- change: Device::Firmata removed, use CPAN version (forum #114552)
- bugfix: 10_FRM: Device::Firmata check (forum #114552 msg #1112141)
- bugfix: 55_DWD_OpenData: forecast rotation (forum #83097 msg #1108423)

View File

@@ -179,8 +179,8 @@ sub weekprofile_getDeviceType($$;$)
}
my $model = $devHash->{ccutype};
if (!defined($model)) {
Log3 $me, 2, "$me(getDeviceType): ccutype not defined - take HM-xxx (HMCCU_HM)";
$model = "HM-xxx";
Log3 $me, 4, "$me(getDeviceType): ccutype not defined";
return undef;
}
Log3 $me, 5, "$me(getDeviceType): $devHash->{NAME}, $model";
$type = "HMCCU_IP" if ( $model =~ m/HmIP.*/ );