typos: success, successful (#13997)

This commit is contained in:
Дилян Палаузов 2022-12-18 15:18:24 +02:00 committed by GitHub
parent 6b1354f9ba
commit ef836a15dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 29 additions and 29 deletions

View File

@ -702,7 +702,7 @@ public class BlueGigaBridgeHandler extends AbstractBluetoothBridgeHandler<BlueGi
.withMode(GapDiscoverMode.GAP_DISCOVER_OBSERVATION).build();
if (sendCommand(discoverCommand, BlueGigaDiscoverResponse.class, false)
.getResult() == BgApiResponse.SUCCESS) {
logger.debug("{} scanning succesfully started.", active ? "Active" : "Passive");
logger.debug("{} scanning successfully started.", active ? "Active" : "Passive");
return true;
}
}

View File

@ -107,7 +107,7 @@ public class EtherRainHandler extends BaseThingHandler {
logger.debug("Starting Etherrain Update Job");
this.updateJob = scheduler.scheduleWithFixedDelay(this::updateBridge, 0, config.refresh, TimeUnit.SECONDS);
logger.debug("EtherRain sucessfully initialized. Starting status poll at: {}", config.refresh);
logger.debug("EtherRain successfully initialized. Starting status poll at: {}", config.refresh);
}
private void stopUpdateJob() {

View File

@ -169,7 +169,7 @@ public class GreeAirDevice {
resp.decryptedPack = GreeCryptoUtil.decryptPack(GreeCryptoUtil.getAESGeneralKeyByteArray(), resp.pack);
resp.packJson = gson.fromJson(resp.decryptedPack, GreeBindResponsePackDTO.class);
// Now set the key and flag to indicate the bind was succesful
// Now set the key and flag to indicate the bind was successful
encKey = resp.packJson.key;
// save the outcome

View File

@ -136,7 +136,7 @@ public class InstarHandler extends ChannelDuplexHandler {
if (requestUrl.startsWith("/param.cgi?cmd=setasaction&-server=1&enable=1")
&& content.contains("response=\"200\";")) {// new
ipCameraHandler.newInstarApi = true;
ipCameraHandler.logger.debug("Alarm server sucessfully setup for a 2k+ Instar camera");
ipCameraHandler.logger.debug("Alarm server successfully setup for a 2k+ Instar camera");
if (ipCameraHandler.cameraConfig.getFfmpegInput().isEmpty()) {
ipCameraHandler.rtspUri = "rtsp://" + ipCameraHandler.cameraConfig.getIp()
+ "/livestream/12";
@ -150,7 +150,7 @@ public class InstarHandler extends ChannelDuplexHandler {
} else if (requestUrl.startsWith("/param.cgi?cmd=setmdalarm&-aname=server2&-switch=on&-interval=1")
&& content.startsWith("[Succeed]set ok")) {
ipCameraHandler.newInstarApi = false;
ipCameraHandler.logger.debug("Alarm server sucessfully setup for a 1080p Instar camera");
ipCameraHandler.logger.debug("Alarm server successfully setup for a 1080p Instar camera");
} else {
ipCameraHandler.logger.debug("Unknown reply from URI:{}", requestUrl);
}

View File

@ -197,7 +197,7 @@ public class JuiceNetApi {
ContentResponse response = request.send();
if (response.getStatus() != HttpStatus.OK_200) {
throw new JuiceNetApiException(
cmd.command + "from JuiceNet API unsucessful, please check configuation. (HTTP code :"
cmd.command + "from JuiceNet API unsuccessful, please check configuation. (HTTP code :"
+ response.getStatus() + ").");
}

View File

@ -97,7 +97,7 @@ The binding supports the following authentication methods, which are selected au
For the token-based authentication, the password is required only for the first login and acquiring the token. After the token is acquired, the password is cleared in the binding configuration.
The acquired token will remain active for several weeks following the last succesful authentication with this token. If the connection is not established used during that period and the token expires, a user password has to be re-entered in the binding settings to acquire a new token.
The acquired token will remain active for several weeks following the last successful authentication with this token. If the connection is not established used during that period and the token expires, a user password has to be re-entered in the binding settings to acquire a new token.
In case a websocket connection to the Miniserver remains active for the whole duration of the token's life span, the binding will refresh the token one day before token expiration, without the need of providing the password.

View File

@ -631,7 +631,7 @@ public class LxWebSocket {
* This method sends a request to receive Miniserver configuration.
*/
private void authenticated() {
logger.debug("[{}] Websocket authentication successfull.", debugId);
logger.debug("[{}] Websocket authentication successful.", debugId);
webSocketLock.lock();
try {
awaitingConfiguration = true;

View File

@ -543,7 +543,7 @@ public class MiCloudConnector {
logger.trace("Cookie :{} --> {}", cookie.getName(), cookie.getValue());
if (cookie.getName().contentEquals("serviceToken")) {
serviceToken = cookie.getValue();
logger.debug("Xiaomi cloud logon succesfull.");
logger.debug("Xiaomi cloud logon successful.");
logger.trace("Xiaomi cloud servicetoken: {}", serviceToken);
}
}

View File

@ -13,7 +13,7 @@ There are two things:
## Discovery
After the ojcloud bridge is succesfully initialized all thermostats will be discovered.
After the ojcloud bridge is successfully initialized all thermostats will be discovered.
### OJ Electronics Bridge configuration (ojcloud)

View File

@ -184,7 +184,7 @@ public class OwserverBridgeHandler extends BaseBridgeHandler {
try {
owHandler.updateSensorProperties(this);
owHandler.initialize();
logger.debug("{} sucessfully updated properties, removing from property update list",
logger.debug("{} successfully updated properties, removing from property update list",
updateThing.getUID());
} catch (OwException e) {
thingPropertiesUpdateQueue.add(updateThing);

View File

@ -91,7 +91,7 @@ public class OwserverConnectionTest extends JavaTest {
}
@Test
public void successfullConnectionReportedToBridgeHandler() {
public void successfulConnectionReportedToBridgeHandler() {
final OwserverConnection owserverConnection = this.owserverConnection;
if (owserverConnection == null) {
fail("connection is null");

View File

@ -49,6 +49,6 @@ public class TankerkoenigBindingConstants {
public static final String CONFIG_REFRESH = "refresh";
public static final String CONFIG_MODE_OPENINGTIME = "modeOpeningTime";
// String used Identify unsucessful web-return
// String used Identify unsuccessful web-return
public static final String NO_VALID_RESPONSE = "No valid response from the web-request!";
}

View File

@ -263,7 +263,7 @@ public class TapoDeviceConnector extends TapoDeviceHttpApi {
JsonObject jsnResult = getJsonFromResponse(responseBody);
Integer errorCode = jsonObjectToInt(jsnResult, "error_code", ERR_JSON_DECODE_FAIL);
if (errorCode != 0) {
logger.debug("({}) set deviceInfo not succesfull: {}", uid, jsnResult);
logger.debug("({}) set deviceInfo not successful: {}", uid, jsnResult);
this.device.handleConnectionState();
}
this.device.responsePasstrough(responseBody);
@ -341,7 +341,7 @@ public class TapoDeviceConnector extends TapoDeviceHttpApi {
jsonObject = gson.fromJson(responseBody, JsonObject.class);
logger.trace("({}) received result: {}", uid, responseBody);
if (jsonObject != null) {
/* return result if set / else request was successfull */
/* return result if set / else request was successful */
if (jsonObject.has("result")) {
return jsonObject.getAsJsonObject("result");
} else {

View File

@ -240,7 +240,7 @@ public class TapoDeviceHttpApi {
if (jsonObject != null) {
Integer errorCode = jsonObjectToInt(jsonObject, "error_code", ERR_JSON_DECODE_FAIL);
if (errorCode == 0) {
/* return result if set / else request was successfull */
/* return result if set / else request was successful */
result = jsonObjectToString(jsonObject.getAsJsonObject("result"), "token");
} else {
/* return errorcode from device */
@ -344,7 +344,7 @@ public class TapoDeviceHttpApi {
logger.debug("({}) sendAsyncRequest response error'{}'", uid, response.getStatus());
handleError(new TapoErrorHandler(ERR_HTTP_RESPONSE, getContentAsString()));
} else {
/* request succesfull */
/* request successful */
String rBody = getContentAsString();
logger.trace("({}) receivedRespose '{}'", uid, rBody);
if (!hasErrorCode(rBody)) {

View File

@ -299,11 +299,11 @@ The meaning of the arguments is described in the table below.
The method returns a `Boolean` whose meaning is also described in the table below.
| Argument | Type | Example | Description |
|-------------|---------|-------------------------------------|-----------------------------------------------------------------------------------------|
|-------------|---------|-------------------------------------|------------------------------------------------------------------------------------------|
| thingName | String | "velux:rollershutter:hubid:thingid" | The thing name of the shutter. Must be a valid configured thing in the hub. |
| mainPercent | Integer | 75 | The target main position in percent. Integer between 0 and 100. |
| vanePercent | Integer | 25 | The target vane position in percent. Integer between 0 and 100. |
| return | Boolean | `true` | Is `true` if the command was sent sucessfully or `false` if any arguments were invalid. |
| return | Boolean | `true` | Is `true` if the command was sent successfully or `false` if any arguments were invalid. |
Example:

View File

@ -872,7 +872,7 @@ public class VeluxBridgeHandler extends ExtendedBaseBridgeHandler implements Vel
// background execution of reboot process
submitCommunicationsJob(() -> {
if (thisBridge.bridgeCommunicate(bcp)) {
logger.info("Reboot command {}sucessfully sent to {}", bcp.isCommunicationSuccessful() ? "" : "un",
logger.info("Reboot command {}successfully sent to {}", bcp.isCommunicationSuccessful() ? "" : "un",
getThing().getUID());
}
});
@ -900,7 +900,7 @@ public class VeluxBridgeHandler extends ExtendedBaseBridgeHandler implements Vel
relativePercent > 0 ? PositionType.OFFSET_POSITIVE : PositionType.OFFSET_NEGATIVE),
null);
if (thisBridge.bridgeCommunicate(bcp)) {
logger.trace("moveRelative() command {}sucessfully sent to {}",
logger.trace("moveRelative() command {}successfully sent to {}",
bcp.isCommunicationSuccessful() ? "" : "un", getThing().getUID());
}
}
@ -970,7 +970,7 @@ public class VeluxBridgeHandler extends ExtendedBaseBridgeHandler implements Vel
bcp.setNodeIdAndParameters(node.toInt(), mainPos, functionalParameters);
submitCommunicationsJob(() -> {
if (thisBridge.bridgeCommunicate(bcp)) {
logger.trace("moveMainAndVane() command {}sucessfully sent to {}",
logger.trace("moveMainAndVane() command {}successfully sent to {}",
bcp.isCommunicationSuccessful() ? "" : "un", getThing().getUID());
}
});

View File

@ -140,7 +140,7 @@ public class VerisureSmartLockThingHandler extends VerisureThingHandler<Verisure
if (session != null) {
int httpResultCode = session.sendCommand(url, data, installationId);
if (httpResultCode == HttpStatus.OK_200) {
logger.debug("AutoRelock sucessfully changed to {}", command.toString());
logger.debug("AutoRelock successfully changed to {}", command.toString());
} else {
logger.warn("Failed to send command, HTTP result code {}", httpResultCode);
}
@ -223,7 +223,7 @@ public class VerisureSmartLockThingHandler extends VerisureThingHandler<Verisure
logger.debug("Trying to set SmartLock volume with URL {} and data {}", url, data);
int httpResultCode = session.sendCommand(url, data, installationId);
if (httpResultCode == HttpStatus.OK_200) {
logger.debug("SmartLock volume sucessfully changed!");
logger.debug("SmartLock volume successfully changed!");
} else {
logger.warn("Failed to send command, HTTP result code {}", httpResultCode);
}

View File

@ -237,7 +237,7 @@ public class TableCreatingPutItem<T extends DynamoDBItem<?>> {
.thenAcceptAsync(tableWaitResponse -> {
// if waiter fails, the future is completed exceptionally (not entering this step)
ResponseOrException<DescribeTableResponse> responseOrException = tableWaitResponse.matched();
logger.trace("PutItem: Table wait completed sucessfully with {} attempts: {}",
logger.trace("PutItem: Table wait completed successfully with {} attempts: {}",
tableWaitResponse.attemptsExecuted(), toString(responseOrException));
}, executor);
}