Skip to content

Commit df3fe4a

Browse files
committed
Apply refactor suggestions
1 parent 38808f9 commit df3fe4a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugwise_usb/nodes/sense.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ async def load(self) -> bool:
5757
await self._load_from_cache()
5858
else:
5959
self._load_defaults()
60-
self._loaded = True
6160
self._setup_protocol(
6261
SENSE_FIRMWARE_SUPPORT,
6362
(NodeFeature.INFO, NodeFeature.SENSE),
@@ -153,7 +152,7 @@ async def get_state(self, features: tuple[NodeFeature]) -> dict[NodeFeature, Any
153152
case NodeFeature.PING:
154153
states[NodeFeature.PING] = await self.ping_update()
155154
case NodeFeature.SENSE:
156-
states[NodeFeature.TEMPERATURE] = self._sense_statistics
155+
states[NodeFeature.SENSE] = self._sense_statistics
157156
case _:
158157
state_result = await super().get_state((feature,))
159158
states[feature] = state_result[feature]

0 commit comments

Comments
 (0)