Skip to content

Commit a7e3c68

Browse files
committed
Shorten if and if construct
1 parent 642d24a commit a7e3c68

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
@@ -1272,7 +1272,7 @@ async def _check_for_energy_and_power_features(
12721272
If both are present, execute the related functions in a specific order
12731273
to assure a proper response to the hourly pulses-rollovers.
12741274
"""
1275-
if NodeFeature.ENERGY in features and NodeFeature.POWER in features:
1275+
if {NodeFeature.ENERGY, NodeFeature.POWER} <= features:
12761276
states[NodeFeature.POWER] = await self.power_update()
12771277
_LOGGER.debug(
12781278
"async_get_state %s - power: %s",

0 commit comments

Comments
 (0)