Skip to content

Commit 8f07479

Browse files
committed
Shorten if and if construct
1 parent 373777e commit 8f07479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ async def _check_for_energy_and_power_features(
12791279
If both are present, execute the related functions in a specific order
12801280
to assure a proper response to the hourly pulses-rollovers.
12811281
"""
1282-
if NodeFeature.ENERGY in features and NodeFeature.POWER in features:
1282+
if {NodeFeature.ENERGY, NodeFeature.POWER} <= features:
12831283
states[NodeFeature.POWER] = await self.power_update()
12841284
_LOGGER.debug(
12851285
"async_get_state %s - power: %s",

0 commit comments

Comments
 (0)