From a2fc523df8f70e659db3221e13e096517d660e43 Mon Sep 17 00:00:00 2001 From: justme1968 Date: Sat, 15 Feb 2014 09:58:52 +0000 Subject: [PATCH] use $hash->{model} instead of $hash->{Model} git-svn-id: https://svn.fhem.de/fhem/trunk@4937 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/32_withings.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/32_withings.pm b/fhem/FHEM/32_withings.pm index ab47c1401..2977aceb9 100644 --- a/fhem/FHEM/32_withings.pm +++ b/fhem/FHEM/32_withings.pm @@ -309,8 +309,8 @@ withings_initDevice($) $hash->{fw} = $device->{fw}; $hash->{DeviceType} = $device->{type}; $hash->{DeviceType} = $device_types{$device->{type}} if( defined($device_types{$device->{type}}) ); - $hash->{Model} = $device->{model}; - $hash->{Model} = $device_models{$device->{type}}->{$device->{model}} + $hash->{model} = $device->{model}; + $hash->{model} = $device_models{$device->{type}}->{$device->{model}} if( defined($device_models{$device->{type}}) && defined($device_models{$device->{type}}->{$device->{model}}) ); if( !defined( $attr{$name}{stateFormat} ) ) {