feat: test
This commit is contained in:
		@@ -67,6 +67,8 @@ use Time::Local;
 | 
			
		||||
use Time::Piece;
 | 
			
		||||
use Time::Seconds;
 | 
			
		||||
 | 
			
		||||
use SetExtensions;
 | 
			
		||||
 | 
			
		||||
# try to use JSON::MaybeXS wrapper
 | 
			
		||||
#   for chance of better performance + open code
 | 
			
		||||
eval {
 | 
			
		||||
@@ -561,6 +563,7 @@ sub Set {
 | 
			
		||||
        $abilities  = 'winter_settings';
 | 
			
		||||
        $service_id = $hash->{helper}->{'winter_mode_id'};
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    else {
 | 
			
		||||
 | 
			
		||||
        my $list = '';
 | 
			
		||||
@@ -613,7 +616,8 @@ sub Set {
 | 
			
		||||
 | 
			
		||||
        # all devices has abilitie to fall a sleep
 | 
			
		||||
        $list .= ' winter_mode:awake,hibernate';
 | 
			
		||||
        return "Unknown argument $cmd, choose one of $list";
 | 
			
		||||
    		return SetExtensions($hash, $list, $name, $cmd, @aArg);
 | 
			
		||||
        # return "Unknown argument $cmd, choose one of $list";
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $hash->{helper}{deviceAction} = $payload;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user