Skip to content

Commit

Permalink
work around linting false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Sep 19, 2022
1 parent 81ade80 commit ef69d6d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions weconnect_mqtt/weconnect_mqtt_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,13 @@ def connectWeConnect(self, weConnect):
self.weConnect = weConnect
self.weConnect.enableTracker()
if self.republishOnUpdate:
flags = addressable.AddressableLeaf.ObserverEvent.UPDATED_FROM_SERVER | addressable.AddressableLeaf.ObserverEvent.ENABLED \
| addressable.AddressableLeaf.ObserverEvent.DISABLED # pylint: disable=unsupported-binary-operation
flags = (addressable.AddressableLeaf.ObserverEvent.UPDATED_FROM_SERVER # pylint: disable=unsupported-binary-operation
| addressable.AddressableLeaf.ObserverEvent.ENABLED # pylint: disable=unsupported-binary-operation
| addressable.AddressableLeaf.ObserverEvent.DISABLED) # pylint: disable=unsupported-binary-operation
else:
flags = addressable.AddressableLeaf.ObserverEvent.VALUE_CHANGED | addressable.AddressableLeaf.ObserverEvent.ENABLED \
| addressable.AddressableLeaf.ObserverEvent.DISABLED # pylint: disable=unsupported-binary-operation
flags = (addressable.AddressableLeaf.ObserverEvent.VALUE_CHANGED # pylint: disable=unsupported-binary-operation
| addressable.AddressableLeaf.ObserverEvent.ENABLED # pylint: disable=unsupported-binary-operation
| addressable.AddressableLeaf.ObserverEvent.DISABLED) # pylint: disable=unsupported-binary-operation
self.weConnect.addObserver(self.onWeConnectEvent, flags, priority=addressable.AddressableLeaf.ObserverPriority.USER_MID)
self.setConnected(connected=True)
self.setError(code=WeConnectErrors.SUCCESS)
Expand Down

0 comments on commit ef69d6d

Please sign in to comment.