2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 03:44:52 +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:
Ellert 2024-10-03 16:53:15 +00:00
parent c98dbb463d
commit 3c2837fc32

View File

@ -2415,7 +2415,7 @@ sub fillReadings {
$pref = 'system';
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/;
readingsBulkUpdateIfChanged( $hash, "model", $model );
$pref = 'planner';