Skip to content

Commit 567b1a4

Browse files
committed
Revert "Don't call power_update() twice"
This reverts commit c7fb2b0.
1 parent 2be6a15 commit 567b1a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,8 +1249,7 @@ async def get_state(self, features: tuple[NodeFeature]) -> dict[NodeFeature, Any
12491249
case NodeFeature.RELAY_INIT:
12501250
states[feature] = self._relay_config
12511251
case NodeFeature.POWER:
1252-
# power_update() is called as part of energy_update()
1253-
states[feature] = self._power
1252+
states[feature] = await self.power_update()
12541253
_LOGGER.debug(
12551254
"async_get_state %s - power: %s",
12561255
self._mac_in_str,

0 commit comments

Comments
 (0)