From 72eb0399ba83f70139e5b43711b993bae80ae02c Mon Sep 17 00:00:00 2001 From: neumann <> Date: Tue, 30 May 2017 17:59:04 +0000 Subject: [PATCH] 37_Spotify: device_active reading git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14423 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/37_Spotify.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FHEM/37_Spotify.pm b/FHEM/37_Spotify.pm index 044ba5c84..1b6fb54e1 100644 --- a/FHEM/37_Spotify.pm +++ b/FHEM/37_Spotify.pm @@ -782,7 +782,7 @@ sub Spotify_dispatch($$$) { $index++; } readingsBulkUpdateIfChanged($hash, 'devices_cnt', $index-1, 1); - Spotify_saveDevice($hash, {id => "none", "name" => "none", "volume_percent" => -1, "type" => "none"}, 'device_active', 0); + Spotify_saveDevice($hash, {id => "none", "name" => "none", "volume_percent" => -1, "type" => "none"}, 'device_active', 0) if(!defined $hash->{helper}{device_active}); readingsEndUpdate($hash, 1); }