use $hash->{model} instead of $hash->{Model}

git-svn-id: https://svn.fhem.de/fhem/trunk@4937 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-02-15 09:58:52 +00:00
parent b535710c76
commit a2fc523df8

View File

@@ -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} ) ) {