mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-15 22:26:04 +00:00
74_AutomowerConnect: convert model to upper case due to changed spelling
git-svn-id: https://svn.fhem.de/fhem/trunk@29189 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
42579f65c9
commit
38318e2d56
@ -2415,7 +2415,7 @@ sub fillReadings {
|
|||||||
|
|
||||||
$pref = 'system';
|
$pref = 'system';
|
||||||
readingsBulkUpdateIfChanged( $hash, $pref."_name", $hash->{helper}{mower}{attributes}{$pref}{name} );
|
readingsBulkUpdateIfChanged( $hash, $pref."_name", $hash->{helper}{mower}{attributes}{$pref}{name} );
|
||||||
my $model = $hash->{helper}{mower}{attributes}{$pref}{model};
|
my $model = uc $hash->{helper}{mower}{attributes}{$pref}{model};
|
||||||
$model =~ s/AUTOMOWER./AM/;
|
$model =~ s/AUTOMOWER./AM/;
|
||||||
readingsBulkUpdateIfChanged( $hash, "model", $model );
|
readingsBulkUpdateIfChanged( $hash, "model", $model );
|
||||||
$pref = 'planner';
|
$pref = 'planner';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user