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:
@@ -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} ) ) {
|
||||
|
||||
Reference in New Issue
Block a user