def get_color(self):
        """Get current color."""
        self.get_status()
        try:
            self.color = self.data['color']
            self.mode = self.data['mode']
        except TypeError:
            self.color = 0
            self.mode = ''

        return {'color': self.color, 'mode': self.mode}
def get_color ( self ) : self . get_status ( ) try : self . color = self . data [ 'color' ] self . mode = self . data [ 'mode' ] except TypeError : self . color = 0 self . mode = '' return { 'color' : self . color , 'mode' : self . mode }
Get current color.