Accept a list for state_aggregate setting

See #18659
This commit is contained in:
Da-Juan 2017-06-28 19:21:25 +02:00
parent 3b9ccf09d7
commit c9075b8f84

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'])