Fixed SAT findings for new SAT 0.11.1 release (#10518)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp
2021-04-14 15:11:31 +02:00
committed by GitHub
parent 9e4b67ee09
commit a04cfd3389
28 changed files with 88 additions and 43 deletions

View File

@@ -27,7 +27,7 @@ import org.slf4j.LoggerFactory;
/**
* The {@link ChromecastActions} class defines rule actions for playing URLs
*
* @author Scott Hanson - Added Actions
* @author Scott Hanson - Initial contribution
*/
@ThingActionsScope(name = "chromecast")
@NonNullByDefault

View File

@@ -86,12 +86,13 @@ public class ChromecastDiscoveryParticipant implements MDNSDiscoveryParticipant
if (model == null) {
return null;
}
if (model.equals("Chromecast Audio")) {
return THING_TYPE_AUDIO;
} else if (model.equals("Google Cast Group")) {
return THING_TYPE_AUDIOGROUP;
} else {
return THING_TYPE_CHROMECAST;
switch (model) {
case "Chromecast Audio":
return THING_TYPE_AUDIO;
case "Google Cast Group":
return THING_TYPE_AUDIOGROUP;
default:
return THING_TYPE_CHROMECAST;
}
}

View File

@@ -3,4 +3,4 @@ playURLActionLabel = play a URL
playURLActionDescription = Plays a URL.
playURLTypeActionLabel = play a URL with a media type
playURLTypeActionDescription = Plays a URL with a defined media type attribute.
playURLTypeActionDescription = Plays a URL with a defined media type attribute.