2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

74_GardenaSmartDevice: fix password setter

git-svn-id: https://svn.fhem.de/fhem/trunk@21820 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
LeonGaultier 2020-04-30 19:37:07 +00:00
parent c7c714a945
commit ff742becfa
3 changed files with 7 additions and 10 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it. # Do not insert empty lines here, update check depends on it.
- bugfix: 74_GardenaSmartDevice: fix password setter
- change: 70_BOTVAC: Optimze error message handling - change: 70_BOTVAC: Optimze error message handling
Renew accessToken if necessary Renew accessToken if necessary
PBP issues PBP issues

View File

@ -419,12 +419,12 @@ sub Set {
elsif ( lc $cmd eq 'gardenaaccountpassword' ) { elsif ( lc $cmd eq 'gardenaaccountpassword' ) {
return "please set Attribut gardenaAccountEmail first" return "please set Attribut gardenaAccountEmail first"
if ( AttrVal( $name, 'gardenaAccountEmail', 'none' ) eq 'none' ); if ( AttrVal( $name, 'gardenaAccountEmail', 'none' ) eq 'none' );
return "usage: $cmd <password>" if ( scalar( @{$a} ) != 0 ); return "usage: $cmd <password>" if ( scalar( @{$a} ) != 1 );
StorePassword( $hash, $name, $a->[0] ); StorePassword( $hash, $name, $a->[0] );
} }
elsif ( lc $cmd eq 'deleteaccountpassword' ) { elsif ( lc $cmd eq 'deleteaccountpassword' ) {
return "usage: $cmd <password>" if ( scalar( @{$a} ) != 0 ); return "usage: $cmd" if ( scalar( @{$a} ) != 0 );
DeletePassword($hash); DeletePassword($hash);
} }
@ -1375,7 +1375,7 @@ sub DeletePassword {
], ],
"release_status": "stable", "release_status": "stable",
"license": "GPL_2", "license": "GPL_2",
"version": "v2.0.0", "version": "v2.0.1",
"author": [ "author": [
"Marko Oldenburg <leongaultier@gmail.com>" "Marko Oldenburg <leongaultier@gmail.com>"
], ],

View File

@ -610,12 +610,8 @@ sub WriteReadings {
readingsBulkUpdate( readingsBulkUpdate(
$hash, 'state', $hash, 'state',
( (
( ReadingsVal( $name, 'watering-watering_timer_1_duration', 0 )
ReadingsVal( $name, 'watering-watering_timer_1_state', 'open' ) =~ m{\A[1-9]([0-9]+)?\z}xms
eq 'open'
|| ReadingsVal( $name, 'watering-watering_timer_1_state',
'offen' ) eq 'offen'
)
? RigReadingsValue( $hash, 'open' ) ? RigReadingsValue( $hash, 'open' )
: RigReadingsValue( $hash, 'closed' ) : RigReadingsValue( $hash, 'closed' )
) )
@ -1216,7 +1212,7 @@ sub SetPredefinedStartPoints {
], ],
"release_status": "stable", "release_status": "stable",
"license": "GPL_2", "license": "GPL_2",
"version": "v2.0.1", "version": "v2.0.2",
"author": [ "author": [
"Marko Oldenburg <leongaultier@gmail.com>" "Marko Oldenburg <leongaultier@gmail.com>"
], ],