docs: def _sound_settings(area, setting, value, validate_value):
          """Will validate sound settings and values, returns data packet."""
          if validate_value:
              if (setting in CONST.VALID_SOUND_SETTINGS
                      and value not in CONST.ALL_SETTING_SOUND):
                  raise AbodeException(ERROR.INVALID_SETTING_VALUE,
                                       CONST.ALL_SETTING_SOUND)
              elif (setting == CONST.SETTING_ALARM_LENGTH
                    and value not in CONST.ALL_SETTING_ALARM_LENGTH):
                  raise AbodeException(ERROR.INVALID_SETTING_VALUE,
                                       CONST.ALL_SETTING_ALARM_LENGTH)
              elif (setting == CONST.SETTING_FINAL_BEEPS
                    and value not in CONST.ALL_SETTING_FINAL_BEEPS):
                  raise AbodeException(ERROR.INVALID_SETTING_VALUE,
                                       CONST.ALL_SETTING_FINAL_BEEPS)
  
          return {'area': area, setting: value}