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

@@ -139,7 +139,7 @@ public class MagentaTVDeviceManager {
MagentaTVDevice dev = deviceList.get(udn.toUpperCase());
return dev.properties;
}
if (deviceList.size() > 0) {
if (!deviceList.isEmpty()) {
logger.debug("getDiscoveredProperties(): Unknown UDN: {}", udn);
}
return null;

View File

@@ -222,7 +222,7 @@ public class MagentaTVOAuth {
if (method.equals(HttpMethod.POST)) {
fillPostData(request, data);
}
if (cookies.size() > 0) {
if (!cookies.isEmpty()) {
// Add cookies
String cookieValue = "";
for (HttpCookie c : cookies) {

View File

@@ -104,4 +104,3 @@ channel-type.magentatv.key.command.option.SWITCH = IPTV/DVB
channel-type.magentatv.key.command.option.IPTV = IPTV
channel-type.magentatv.key.command.option.PIP = PIP
channel-type.magentatv.key.command.option.MULTIVIEW = Multi View

View File

@@ -22,7 +22,7 @@
<representation-property>macAddress</representation-property>
<config-description uri="thing-type:magentatv:receiver">
<config-description>
<parameter name="ipAddress" type="text" required="true">
<label>Device IP Address</label>
<description>IP address of the receiver</description>