docs: def map_event_code(event_code):
      """Map a specific event_code to an event group."""
      event_code = int(event_code)
  
      # Honestly, these are just guessing based on the below event list.
      # It could be wrong, I have no idea.
      if 1100 <= event_code <= 1199:
          return ALARM_GROUP
  
      elif 3100 <= event_code <= 3199:
          return ALARM_END_GROUP
  
      elif 1300 <= event_code <= 1399:
          return PANEL_FAULT_GROUP
  
      elif 3300 <= event_code <= 3399:
          return PANEL_RESTORE_GROUP
  
      elif 1400 <= event_code <= 1499:
          return DISARM_GROUP
  
      elif 3400 <= event_code <= 3799:
          return ARM_GROUP
  
      elif 1600 <= event_code <= 1699:
          return TEST_GROUP
  
      elif 5000 <= event_code <= 5099:
          return CAPTURE_GROUP
  
      elif 5100 <= event_code <= 5199:
          return DEVICE_GROUP
  
      elif 5200 <= event_code <= 5299:
          return AUTOMATION_GROUP
  
      return None