We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f769188 commit b6104e7Copy full SHA for b6104e7
1 file changed
plugwise_usb/nodes/circle.py
@@ -1299,13 +1299,9 @@ async def _check_for_energy_and_power_features(
1299
self._mac_in_str,
1300
states[NodeFeature.ENERGY],
1301
)
1302
-
1303
- remaining_features: tuple[NodeFeature, ...] = ()
1304
- for feature in features:
1305
- if feature in [NodeFeature.ENERGY, NodeFeature.POWER]:
1306
- continue
1307
- remaining_features += (feature,)
1308
+ remaining_features = tuple(
+ f for f in features if f not in {NodeFeature.ENERGY, NodeFeature.POWER}
+ )
1309
return remaining_features, states
1310
1311
return features, states
0 commit comments