def is_locked(self, refresh=False):
if refresh:<EOL><INDENT>self.refresh()<EOL><DEDENT>return self.get_value("<STR_LIT>") == '<STR_LIT:1>'<EOL>
Get locked state.

        Refresh data from Vera if refresh is True, otherwise use local cache.
        Refresh is only needed if you're not using subscriptions.
        Lock state can also be found with self.get_complex_value('Status')