Fixed SAT findings for new SAT 0.11.1 release (#10518)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
committed by
GitHub
parent
9e4b67ee09
commit
a04cfd3389
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user