def get_color_index(self, colors, refresh=False):
if refresh:<EOL><INDENT>self.refresh_complex_value('<STR_LIT>')<EOL><DEDENT>sup = self.get_complex_value('<STR_LIT>')<EOL>if sup is None:<EOL><INDENT>return None<EOL><DEDENT>sup = sup.split('<STR_LIT:U+002C>')<EOL>if not set(colors).issubset(sup):<EOL><INDENT>return None<EOL><DEDENT>return [sup.index(c) for c in colors]<EOL>
Get color index.

        Refresh data from Vera if refresh is True, otherwise use local cache.