Skip to content

Commit 913ce68

Browse files
authored
Fix logging statement (openhab#16984)
Signed-off-by: logresearch <[email protected]>
1 parent 6c7832a commit 913ce68

File tree

1 file changed

+10
-10
lines changed
  • bundles/org.openhab.binding.verisure/src/main/java/org/openhab/binding/verisure/internal

1 file changed

+10
-10
lines changed

bundles/org.openhab.binding.verisure/src/main/java/org/openhab/binding/verisure/internal/VerisureSession.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ private synchronized void updateAlarmStatus(VerisureInstallation installation) t
625625
+ "($giid: String!) {\n installation(giid: $giid) {\n armState {\n type\n statusType\n date\n name\n changedVia\n allowedForFirstLine\n allowed\n errorCodes {\n value\n message\n __typename\n}\n __typename\n}\n __typename\n}\n}\n";
626626

627627
String queryQLAlarmStatus = createOperationJSON(operation, variables, query);
628-
logger.debug("Quering API for alarm status!");
628+
logger.debug("Querying API for alarm status!");
629629
try {
630630
VerisureThingDTO thing = postJSONVerisureAPI(url, queryQLAlarmStatus, VerisureAlarmsDTO.class);
631631
logger.debug("REST Response ({})", thing);
@@ -647,7 +647,7 @@ private synchronized void updateSmartLockStatus(VerisureInstallation installatio
647647
VariablesDTO variables = new VariablesDTO();
648648
variables.setGiid(installationId.toString());
649649
String queryQLSmartLock = createOperationJSON(operation, variables, query);
650-
logger.debug("Quering API for smart lock status");
650+
logger.debug("Querying API for smart lock status");
651651

652652
try {
653653
VerisureSmartLocksDTO thing = postJSONVerisureAPI(url, queryQLSmartLock, VerisureSmartLocksDTO.class);
@@ -696,7 +696,7 @@ private synchronized void updateSmartPlugStatus(VerisureInstallation installatio
696696
String query = "query " + operation
697697
+ "($giid: String!) {\n installation(giid: $giid) {\n smartplugs {\n device {\n deviceLabel\n area\n gui {\n support\n label\n __typename\n}\n __typename\n}\n currentState\n icon\n isHazardous\n __typename\n}\n __typename\n}\n}\n";
698698
String queryQLSmartPlug = createOperationJSON(operation, variables, query);
699-
logger.debug("Quering API for smart plug status");
699+
logger.debug("Querying API for smart plug status");
700700

701701
try {
702702
VerisureSmartPlugsDTO thing = postJSONVerisureAPI(url, queryQLSmartPlug, VerisureSmartPlugsDTO.class);
@@ -748,7 +748,7 @@ private synchronized void updateClimateStatus(VerisureInstallation installation)
748748
+ "($giid: String!) {\n installation(giid: $giid) {\n climates {\n device {\n deviceLabel\n area\n gui {\n label\n __typename\n }\n __typename\n }\n humidityEnabled\n humidityTimestamp\n humidityValue\n temperatureTimestamp\n temperatureValue\n __typename\n }\n __typename\n}\n}\n";
749749

750750
String queryQLClimates = createOperationJSON(operation, variables, query);
751-
logger.debug("Quering API for climate status");
751+
logger.debug("Querying API for climate status");
752752

753753
try {
754754
VerisureClimatesDTO thing = postJSONVerisureAPI(url, queryQLClimates, VerisureClimatesDTO.class);
@@ -817,7 +817,7 @@ private synchronized void updateDoorWindowStatus(VerisureInstallation installati
817817
+ "($giid: String!) {\n installation(giid: $giid) {\n doorWindows {\n device {\n deviceLabel\n area\n __typename\n }\n type\n state\n wired\n reportTime\n __typename\n }\n __typename\n}\n}\n";
818818

819819
String queryQLDoorWindow = createOperationJSON(operation, variables, query);
820-
logger.debug("Quering API for door&window status");
820+
logger.debug("Querying API for door&window status");
821821

822822
try {
823823
VerisureDoorWindowsDTO thing = postJSONVerisureAPI(url, queryQLDoorWindow, VerisureDoorWindowsDTO.class);
@@ -868,7 +868,7 @@ private synchronized void updateBroadbandConnectionStatus(VerisureInstallation i
868868
+ "($giid: String!) {\n installation(giid: $giid) {\n broadband {\n testDate\n isBroadbandConnected\n __typename\n }\n __typename\n}\n}\n";
869869

870870
String queryQLBroadbandConnection = createOperationJSON(operation, variables, query);
871-
logger.debug("Quering API for broadband connection status");
871+
logger.debug("Querying API for broadband connection status");
872872

873873
try {
874874
VerisureThingDTO thing = postJSONVerisureAPI(url, queryQLBroadbandConnection,
@@ -893,7 +893,7 @@ private synchronized void updateUserPresenceStatus(VerisureInstallation installa
893893
+ "($giid: String!) {\ninstallation(giid: $giid) {\n userTrackings {\n isCallingUser\n webAccount\n status\n xbnContactId\n currentLocationName\n deviceId\n name\n currentLocationTimestamp\n deviceName\n currentLocationId\n __typename\n}\n __typename\n}\n}\n";
894894

895895
String queryQLUserPresence = createOperationJSON(operation, variables, query);
896-
logger.debug("Quering API for user presence status");
896+
logger.debug("Querying API for user presence status");
897897

898898
try {
899899
VerisureUserPresencesDTO thing = postJSONVerisureAPI(url, queryQLUserPresence,
@@ -933,7 +933,7 @@ private synchronized void updateMiceDetectionStatus(VerisureInstallation install
933933
+ "($giid: String!) {\n installation(giid: $giid) {\n mice {\n device {\n deviceLabel\n area\n gui {\n support\n __typename\n}\n __typename\n}\n type\n detections {\n count\n gatewayTime\n nodeTime\n duration\n __typename\n}\n __typename\n}\n __typename\n}\n}\n";
934934

935935
String queryQLMiceDetection = createOperationJSON(operation, variables, query);
936-
logger.debug("Quering API for mice detection status");
936+
logger.debug("Querying API for mice detection status");
937937

938938
try {
939939
VerisureMiceDetectionDTO thing = postJSONVerisureAPI(url, queryQLMiceDetection,
@@ -983,7 +983,7 @@ private synchronized void updateEventLogStatus(VerisureInstallation installation
983983
+ "($giid: String!, $offset: Int!, $pagesize: Int!, $eventCategories: [String], $fromDate: String, $toDate: String, $eventContactIds: [String]) {\n installation(giid: $giid) {\n eventLog(offset: $offset, pagesize: $pagesize, eventCategories: $eventCategories, eventContactIds: $eventContactIds, fromDate: $fromDate, toDate: $toDate) {\n moreDataAvailable\n pagedList {\n device {\n deviceLabel\n area\n gui {\n label\n __typename\n }\n __typename\n }\n gatewayArea\n eventType\n eventCategory\n eventSource\n eventId\n eventTime\n userName\n armState\n userType\n climateValue\n sensorType\n eventCount\n __typename\n }\n __typename\n }\n __typename\n }\n}\n";
984984

985985
String queryQLEventLog = createOperationJSON(operation, variables, query);
986-
logger.debug("Quering API for event log status");
986+
logger.debug("Querying API for event log status");
987987

988988
try {
989989
VerisureEventLogDTO thing = postJSONVerisureAPI(url, queryQLEventLog, VerisureEventLogDTO.class);
@@ -1008,7 +1008,7 @@ private synchronized void updateGatewayStatus(VerisureInstallation installation)
10081008
+ "($giid: String!) {\n installation(giid: $giid) {\n communicationState {\n hardwareCarrierType\n result\n mediaType\n device {\n deviceLabel\n area\n gui {\n label\n __typename\n }\n __typename\n }\n testDate\n __typename\n }\n __typename\n }\n}";
10091009

10101010
String queryQLEventLog = createOperationJSON(operation, variables, query);
1011-
logger.debug("Quering API for gateway status");
1011+
logger.debug("Querying API for gateway status");
10121012

10131013
try {
10141014
VerisureGatewayDTO thing = postJSONVerisureAPI(url, queryQLEventLog, VerisureGatewayDTO.class);

0 commit comments

Comments
 (0)