From b6c5eba364623ece95eeb3beb874cfa8abb1a5b6 Mon Sep 17 00:00:00 2001 From: Otto123 <> Date: Fri, 6 Jan 2023 08:05:45 +0000 Subject: [PATCH] 99_sonos2mqttUtils.pm:bugfix git-svn-id: https://svn.fhem.de/fhem/trunk@26971 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/AttrTemplate/99_sonos2mqttUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/contrib/AttrTemplate/99_sonos2mqttUtils.pm b/fhem/contrib/AttrTemplate/99_sonos2mqttUtils.pm index 90dd4cadb..4580dc0b0 100644 --- a/fhem/contrib/AttrTemplate/99_sonos2mqttUtils.pm +++ b/fhem/contrib/AttrTemplate/99_sonos2mqttUtils.pm @@ -343,7 +343,7 @@ if ($reading eq 'Input') { my $currentTrack_TrackUri = ReadingsVal($name,'currentTrack_TrackUri',''); return $currentTrack_TrackUri =~ 'x-rincon-stream' ? 'LineIn': $currentTrack_TrackUri =~ 'spdif' - ? 'TV' : ReadingsVal($name,'enqueuedMetadata_UpnpClass','') eq 'object.item.audioItem.audioBroadcast' or $currentTrack_TrackUri =~ 'x-rincon-mp3radio' + ? 'TV' : (ReadingsVal($name,'enqueuedMetadata_UpnpClass','') eq 'object.item.audioItem.audioBroadcast') or ($currentTrack_TrackUri =~ 'x-rincon-mp3radio') ? 'Radio' : 'Playlist' } }