mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
37_Spotify: check for uninitialized values
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14447 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6aaec593c4
commit
820091c4c9
@ -679,7 +679,7 @@ sub Spotify_getTargetDeviceID($$$) { # resolve target device settings
|
||||
)
|
||||
|| !defined $hash->{helper}{device_active}{id}
|
||||
)
|
||||
&& $attr{$name}{defaultPlaybackDeviceID} ne $device_id
|
||||
&& (!defined $device_id || $attr{$name}{defaultPlaybackDeviceID} ne $device_id)
|
||||
);
|
||||
|
||||
# no default or active device available
|
||||
|
Loading…
x
Reference in New Issue
Block a user