@property<EOL><INDENT>def level(self):<DEDENT>
<EOL>level = self.get_value('<STR_LIT>')<EOL>try:<EOL><INDENT>return int(float(level))<EOL><DEDENT>except (TypeError, ValueError):<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>return int(level.strip('<STR_LIT:%>'))<EOL><DEDENT>except (TypeError, AttributeError, ValueError):<EOL><INDENT>pass<EOL><DEDENT>return <NUM_LIT:0><EOL>
Get level from vera.