Merge pull request #41991 from Da-Juan/fix-state_aggregate-list

Accept a list for state_aggregate global setting
This commit is contained in:
Erik Johnson 2017-06-28 19:58:59 -05:00 committed by GitHub
commit a7f38929cb

View file

@ -766,7 +766,7 @@ class State(object):
agg_opt = low['aggregate']
if agg_opt is True:
agg_opt = [low['state']]
else:
elif not isinstance(agg_opt, list):
return low
if low['state'] in agg_opt and not low.get('__agg__'):
agg_fun = '{0}.mod_aggregate'.format(low['state'])