74_HusqvarnaAutomower.pm: Remove trailing unit from mower_battery

git-svn-id: https://svn.fhem.de/fhem/trunk@16888 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
krannich
2018-06-19 21:07:42 +00:00
parent 26c1cf68d5
commit 9ea2e603c9

View File

@@ -514,7 +514,7 @@ sub HusqvarnaAutomower_getMowerResponse($) {
#readingsBulkUpdate($hash,$reading,$value);
readingsBulkUpdate($hash, "mower_id", $hash->{HusqvarnaAutomower}->{mower_id} );
readingsBulkUpdate($hash, "mower_name", $hash->{HusqvarnaAutomower}->{mower_name} );
readingsBulkUpdate($hash, "mower_battery", $hash->{HusqvarnaAutomower}->{mower_battery} );
readingsBulkUpdate($hash, "mower_battery", chop($hash->{HusqvarnaAutomower}->{mower_battery}) );
readingsBulkUpdate($hash, "mower_status", $hash->{HusqvarnaAutomower}->{mower_status} );
readingsBulkUpdate($hash, "mower_mode", HusqvarnaAutomower_ToGerman($hash, $hash->{HusqvarnaAutomower}->{mower_mode} ));
@@ -582,7 +582,7 @@ sub HusqvarnaAutomower_getMowerStatusResponse($) {
readingsBeginUpdate($hash);
readingsBulkUpdate($hash, "mower_battery", $hash->{HusqvarnaAutomower}->{mower_battery}."%" );
readingsBulkUpdate($hash, "mower_battery", $hash->{HusqvarnaAutomower}->{mower_battery} );
readingsBulkUpdate($hash, "mower_status", $hash->{HusqvarnaAutomower}->{mower_status} );
readingsBulkUpdate($hash, "mower_mode", $hash->{HusqvarnaAutomower}->{mower_mode} );