Skip to content

Commit

Permalink
Fix code issues
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Marceau <[email protected]>
  • Loading branch information
olivierkeke committed Nov 12, 2021
1 parent e1ceedf commit 5128a92
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private void updateStatesForChannels(Frame frame) {
}
if (!label.getTimestampChannelName().equals(NOT_A_CHANNEL)) {
String timestamp = frame.getAsDateTime(label);
if (timestamp != "") {
if (!timestamp.isEmpty()) {
updateState(label.getTimestampChannelName(), DateTimeType.valueOf(timestamp));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">

<channel-group-type id="producerLSMPGroupType">
<channel-group-type id="producerLSMGroupType">
<label>producerLSMPGroup</label>
<description>Linky Standard Mode producer channels</description>
<category>Energy</category>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">

<channel-group-type id="threePhasedLSMPGroupType">
<channel-group-type id="threePhasedLSMGroupType">
<label>threePhasedLSMPGroup</label>
<description>Linky Standard Mode three-phased channels</description>
<category>Energy</category>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<channel-group id="commonLSMGroup" typeId="commonLSMGroupType"/>
</channel-groups>

<config-description-ref uri="binding:teleinfo:adco"/>
<config-description-ref uri="thing-type:teleinfo:adco"/>

</thing-type>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<channel-group id="producerLSMGroup" typeId="producerLSMGroupType"/>
</channel-groups>

<config-description-ref uri="binding:teleinfo:adco"/>
<config-description-ref uri="thing-type:teleinfo:adco"/>

</thing-type>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<channel-group id="threePhasedLSMGroup" typeId="threePhasedLSMGroupType"/>
</channel-groups>

<config-description-ref uri="binding:teleinfo:adco"/>
<config-description-ref uri="thing-type:teleinfo:adco"/>

</thing-type>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<channel-group id="threePhasedLSMGroup" typeId="threePhasedLSMGroupType"/>
</channel-groups>

<config-description-ref uri="binding:teleinfo:adco"/>
<config-description-ref uri="thing-type:teleinfo:adco"/>

</thing-type>

Expand Down

0 comments on commit 5128a92

Please sign in to comment.