docs: def _panel_settings(setting, value, validate_value):
          """Will validate panel settings and values, returns data packet."""
          if validate_value:
              if (setting == CONST.SETTING_CAMERA_RESOLUTION
                      and value not in CONST.SETTING_ALL_CAMERA_RES):
                  raise AbodeException(ERROR.INVALID_SETTING_VALUE,
                                       CONST.SETTING_ALL_CAMERA_RES)
              elif (setting in
                    [CONST.SETTING_CAMERA_GRAYSCALE,
                     CONST.SETTING_SILENCE_SOUNDS]
                    and value not in
                    CONST.SETTING_DISABLE_ENABLE):
                  raise AbodeException(ERROR.INVALID_SETTING_VALUE,
                                       CONST.SETTING_DISABLE_ENABLE)
  
          return {setting: value}