original_docstring: Log an error if a service call uses an invalid system ID.
docstring: Log an error if a service call uses an invalid system ID.
docstring_tokens: Log an error if a service call uses an invalid system ID .
code: def verify_system_exists(coro):
          """Log an error if a service call uses an invalid system ID."""
  
          async def decorator(call):
              """Decorate."""
              system_id = int(call.data[ATTR_SYSTEM_ID])
              if system_id not in simplisafe.systems:
                  _LOGGER.error("Unknown system ID in service call: %s", system_id)
                  return
              await coro(call)
  
          return decorator
code_tokens: def verify_system_exists ( coro ) : async def decorator ( call ) : """Decorate.""" system_id = int ( call . data [ ATTR_SYSTEM_ID ] ) if system_id not in simplisafe . systems : _LOGGER . error ( "Unknown system ID in service call: %s" , system_id ) return await coro ( call ) return decorator
short_docstring: Log an error if a service call uses an invalid system ID.
short_docstring_tokens: Log an error if a service call uses an invalid system ID .
comment: """Log an error if a service call uses an invalid system ID."""$SEP$"""Decorate."""