@property<EOL><INDENT>def state(self):<DEDENT>
if self.is_active:<EOL><INDENT>if '<STR_LIT>' in self.session:<EOL><INDENT>if self.session['<STR_LIT>']['<STR_LIT>']:<EOL><INDENT>return STATE_PAUSED<EOL><DEDENT>else:<EOL><INDENT>return STATE_PLAYING<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return STATE_IDLE<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return STATE_OFF<EOL><DEDENT>
Return current playstate of the device.