original_docstring: Log an error if the decorated coroutine is called with a v2 system.
docstring: Log an error if the decorated coroutine is called with a v2 system.
docstring_tokens: Log an error if the decorated coroutine is called with a v2 system .
code: def v3_only(coro):
          """Log an error if the decorated coroutine is called with a v2 system."""
  
          async def decorator(call):
              """Decorate."""
              system = simplisafe.systems[int(call.data[ATTR_SYSTEM_ID])]
              if system.version != 3:
                  _LOGGER.error("Service only available on V3 systems")
                  return
              await coro(call)
  
          return decorator
code_tokens: def v3_only ( coro ) : async def decorator ( call ) : """Decorate.""" system = simplisafe . systems [ int ( call . data [ ATTR_SYSTEM_ID ] ) ] if system . version != 3 : _LOGGER . error ( "Service only available on V3 systems" ) return await coro ( call ) return decorator
short_docstring: Log an error if the decorated coroutine is called with a v2 system.
short_docstring_tokens: Log an error if the decorated coroutine is called with a v2 system .
comment: """Log an error if the decorated coroutine is called with a v2 system."""$SEP$"""Decorate."""