Skip to content

Commit 00288e1

Browse files
committed
Fix publish_feature
1 parent 61021e8 commit 00288e1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

plugwise_usb/nodes/sense.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,12 @@ async def _sense_report(self, response: PlugwiseResponse) -> bool:
127127
SENSE_HUMIDITY_MULTIPLIER * (response.humidity.value / 65536)
128128
- SENSE_HUMIDITY_OFFSET
129129
)
130-
await self.publish_feature_update_to_subscribers(
131-
NodeFeature.SENSE, self._sense_statistics
132-
)
133130
report_received_2 = True
134-
131+
132+
await self.publish_feature_update_to_subscribers(
133+
NodeFeature.SENSE, self._sense_statistics
134+
)
135+
135136
return report_received_1 and report_received_2
136137

137138
@raise_not_loaded

0 commit comments

Comments
 (0)