]> git.basschouten.com Git - openhab-addons.git/commitdiff
[magentatv] Adapted to OH 3.0 (#8657)
authorMarkus Michels <markus7017@gmail.com>
Sun, 4 Oct 2020 18:36:44 +0000 (20:36 +0200)
committerGitHub <noreply@github.com>
Sun, 4 Oct 2020 18:36:44 +0000 (11:36 -0700)
* add representationProperty to thing definition to make it OH3 compatible
* adapted to OH3 (representationProperty added to thing definition)
* as always...spotless:apply :-(

Signed-off-by: Markus Michels <markus7017@gmail.com>
bundles/org.openhab.binding.magentatv/src/main/resources/OH-INF/i18n/magentatv_de.properties
bundles/org.openhab.binding.magentatv/src/main/resources/OH-INF/thing/thing-types.xml

index 14734cd785591df89add8d13adfba7dbe609d464..6374fc9c8c23df246b671fa1f9dbf0dcfeed61b1 100644 (file)
@@ -9,8 +9,8 @@ thing-type.magentatv.receiver.description = Media Receiver zum Epmfang von Magen
 # Thing configuration
 thing-type.config.magentatv.receiver.ipAddress.label = IP-Adresse
 thing-type.config.magentatv.ipAddress.description = IP Adresse des Media Receivers
-thing-type.config.magentatv.receiver.userId.label = User ID
-thing-type.config.magentatv.receiver.userId.description = Technische Benutzerkennung, siehe Dokumentation
+thing-type.config.magentatv.receiver.userId.label = UID
+thing-type.config.magentatv.receiver.userId.description = Technische Benutzerkennung (User ID), siehe Dokumentation; wird automatisch gefüllt, wenn Login-Name und Passwort angegeben sind.
 thing-type.config.magentatv.receiver.accountName.label = Login-Name
 thing-type.config.magentatv.receiver.accountName.description = Login-Name (E-Mail) zur Anmeldung im Telekom Kundencenter
 thing-type.config.magentatv.receiver.accountPassword.label = Passwort
index 6931c13fff399e0d97aac978bf3b5f16505c13e1..36b0ced037670d1ebee44bf050055782bcdd5c03 100644 (file)
@@ -21,6 +21,7 @@
                </channel-groups>
 
 
+               <representation-property>macAddress</representation-property>
                <config-description uri="thing-type:magentatv:receiver">
                        <parameter name="ipAddress" type="text">
                                <label>Device IP Address</label>
                                <required>true</required>
                                <context>network-address</context>
                        </parameter>
-                       <parameter name="userId" type="text">
-                               <label>User ID</label>
-                               <description>Technical User ID required for pairing process</description>
-                       </parameter>
                        <parameter name="accountName" type="text">
                                <label>Account Name</label>
                                <description>Credentials: Login name (e.g. xxx@t-online.de, same as for the Telekom Kundencenter)</description>
                                <description>Credentials: Account Password (same as for the Telekom Kundencenter)</description>
                                <context>password</context>
                        </parameter>
+                       <parameter name="userId" type="text">
+                               <label>User ID</label>
+                               <description>Technical User ID required for pairing process, auto-filled when account credentials are given</description>
+                       </parameter>
                        <parameter name="udn" type="text">
                                <label>Unique Device Name</label>
                                <description>The UDN identifies the Media Receiver</description>