Handle missing branch for sync with no not-state filter
This commit is contained in:
parent
714bf79d22
commit
b53b729ea1
@ -157,12 +157,14 @@ class PersistedState(State):
|
|||||||
if state == None:
|
if state == None:
|
||||||
states_numeric = list(self.all(numeric=True))
|
states_numeric = list(self.all(numeric=True))
|
||||||
else:
|
else:
|
||||||
#states = [self.name(state)]
|
|
||||||
states_numeric = [state]
|
states_numeric = [state]
|
||||||
|
|
||||||
states = []
|
states = []
|
||||||
for state in states_numeric:
|
for state in states_numeric:
|
||||||
if not_state != None and state & not_state == 0:
|
if not_state != None:
|
||||||
|
if state & not_state == 0:
|
||||||
|
states.append(self.name(state))
|
||||||
|
else:
|
||||||
states.append(self.name(state))
|
states.append(self.name(state))
|
||||||
|
|
||||||
ks = []
|
ks = []
|
||||||
|
Loading…
Reference in New Issue
Block a user