Skip to content

Commit

Permalink
Fix typos (openhab#17256)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
  • Loading branch information
jlaur authored Aug 14, 2024
1 parent d332dd4 commit 6218fc4
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.openhab.binding.tapocontrol.internal.devices.bridge.TapoBridgeHandler;
import org.openhab.binding.tapocontrol.internal.devices.rf.smartcontact.TapoSmartContactHandler;
import org.openhab.binding.tapocontrol.internal.devices.rf.wheatersensor.TapoWheaterSensorHandler;
import org.openhab.binding.tapocontrol.internal.devices.rf.weathersensor.TapoWeatherSensorHandler;
import org.openhab.binding.tapocontrol.internal.devices.wifi.TapoUniversalDeviceHandler;
import org.openhab.binding.tapocontrol.internal.devices.wifi.bulb.TapoBulbHandler;
import org.openhab.binding.tapocontrol.internal.devices.wifi.hub.TapoHubHandler;
Expand Down Expand Up @@ -125,8 +125,8 @@ public boolean supportsThingType(ThingTypeUID thingTypeUID) {
return new TapoLightStripHandler(thing);
} else if (SUPPORTED_SMART_CONTACTS.contains(thingTypeUID)) {
return new TapoSmartContactHandler(thing);
} else if (SUPPORTED_WHEATHER_SENSORS.contains(thingTypeUID)) {
return new TapoWheaterSensorHandler(thing);
} else if (SUPPORTED_WEATHER_SENSORS.contains(thingTypeUID)) {
return new TapoWeatherSensorHandler(thing);
} else if (thingTypeUID.equals(UNIVERSAL_THING_TYPE)) {
return new TapoUniversalDeviceHandler(thing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ public class TapoThingConstants {
T315_THING_TYPE);
public static final Set<ThingTypeUID> SUPPORTED_SMART_CONTACTS = Set.of(T110_THING_TYPE);
public static final Set<ThingTypeUID> SUPPORTED_MOTION_SENSORS = Set.of();
public static final Set<ThingTypeUID> SUPPORTED_WHEATHER_SENSORS = Set.of(T310_THING_TYPE, T315_THING_TYPE);
public static final Set<ThingTypeUID> SUPPORTED_WEATHER_SENSORS = Set.of(T310_THING_TYPE, T315_THING_TYPE);

/*** SET OF ALL SUPPORTED THINGS ***/
public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.unmodifiableSet(Stream
.of(SUPPORTED_BRIDGE_UIDS, SUPPORTED_HUB_UIDS, SUPPORTED_SOCKET_UIDS, SUPPORTED_SOCKET_STRIP_UIDS,
SUPPORTED_WHITE_BULB_UIDS, SUPPORTED_COLOR_BULB_UIDS, SUPPORTED_LIGHT_STRIP_UIDS,
SUPPORTED_SMART_CONTACTS, SUPPORTED_MOTION_SENSORS, SUPPORTED_WHEATHER_SENSORS)
SUPPORTED_SMART_CONTACTS, SUPPORTED_MOTION_SENSORS, SUPPORTED_WEATHER_SENSORS)
.flatMap(Set::stream).collect(Collectors.toSet()));

/*** THINGS WITH ENERGY DATA ***/
Expand All @@ -116,7 +116,7 @@ public class TapoThingConstants {
public static final Set<ThingTypeUID> CHANNEL_GROUP_THING_SET = Collections.unmodifiableSet(Stream
.of(SUPPORTED_BRIDGE_UIDS, SUPPORTED_HUB_UIDS, SUPPORTED_SOCKET_UIDS, SUPPORTED_SOCKET_STRIP_UIDS,
SUPPORTED_WHITE_BULB_UIDS, SUPPORTED_COLOR_BULB_UIDS, SUPPORTED_LIGHT_STRIP_UIDS,
SUPPORTED_SMART_CONTACTS, SUPPORTED_MOTION_SENSORS, SUPPORTED_WHEATHER_SENSORS)
SUPPORTED_SMART_CONTACTS, SUPPORTED_MOTION_SENSORS, SUPPORTED_WEATHER_SENSORS)
.flatMap(Set::stream).collect(Collectors.toSet()));

public static final String CHILD_REPRESENTATION_PROPERTY = "serialNumber";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.openhab.binding.tapocontrol.internal.devices.rf.wheatersensor;
package org.openhab.binding.tapocontrol.internal.devices.rf.weathersensor;

import static org.openhab.binding.tapocontrol.internal.constants.TapoThingConstants.*;
import static org.openhab.binding.tapocontrol.internal.helpers.utils.TypeUtils.*;
Expand All @@ -27,13 +27,13 @@
* @author Christian Wild - Initial contribution
*/
@NonNullByDefault
public class TapoWheaterSensorHandler extends TapoChildDeviceHandler {
public class TapoWeatherSensorHandler extends TapoChildDeviceHandler {
/**
* Constructor
*
* @param thing Thing object representing device
*/
public TapoWheaterSensorHandler(Thing thing) {
public TapoWeatherSensorHandler(Thing thing) {
super(thing);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static String getDeviceLabel(TapoDiscoveryResult device) {
deviceLabel = DEVICE_DESCRIPTION_SMART_CONTACT;
} else if (SUPPORTED_MOTION_SENSORS.contains(deviceUID)) {
deviceLabel = DEVICE_DESCRIPTION_MOTION_SENSOR;
} else if (SUPPORTED_WHEATHER_SENSORS.contains(deviceUID)) {
} else if (SUPPORTED_WEATHER_SENSORS.contains(deviceUID)) {
deviceLabel = DEVICE_DESCRIPTION_TEMP_SENSOR;
}
if (alias.length() > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
</parameter>
<parameter name="pollingInterval" type="integer" min="0" max="9999" required="false">
<label>Refresh Interval</label>
<description>Refresh interval for refreshing the data in seconds (0=disabled). Set it below 10 seconds may cause
communication issues (not recommed).</description>
<description>Refresh interval for refreshing the data in seconds (0=disabled). Setting it below 10 seconds may cause
communication issues (not recommended).</description>
<default>30</default>
<advanced>true</advanced>
</parameter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
</parameter>
<parameter name="pollingInterval" type="integer" min="0" max="9999" required="false">
<label>Refresh Interval</label>
<description>Refresh interval for refreshing hub informations in seconds (0=disabled). Set it below 10 seconds may
cause communication issues (not recommed).</description>
<description>Refresh interval for refreshing hub informations in seconds (0=disabled). Setting it below 10 seconds
may cause communication issues (not recommended).</description>
<default>10</default>
<advanced>true</advanced>
</parameter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bridge-type.config.tapo.hub.httpPort.label = Port
bridge-type.config.tapo.hub.httpPort.description = HTTP-Communication Port (default 80)
bridge-type.config.tapo.hub.ipAddress.label = IP Address
bridge-type.config.tapo.hub.pollingInterval.label = Refresh Interval
bridge-type.config.tapo.hub.pollingInterval.description = Refresh interval for refreshing hub informations in seconds (0=disabled). Set it below 10 seconds may cause communication issues (not recommed).
bridge-type.config.tapo.hub.pollingInterval.description = Refresh interval for refreshing hub informations in seconds (0=disabled). Setting it below 10 seconds may cause communication issues (not recommended).
bridge-type.config.tapo.hub.protocol.label = Protocol
bridge-type.config.tapo.hub.protocol.description = Communication Protocol
bridge-type.config.tapo.hub.protocol.option. = Direct HTTP
Expand All @@ -72,7 +72,7 @@ thing-type.config.tapo.device.httpPort.label = Port
thing-type.config.tapo.device.httpPort.description = HTTP-Communication Port (default 80)
thing-type.config.tapo.device.ipAddress.label = IP Address
thing-type.config.tapo.device.pollingInterval.label = Refresh Interval
thing-type.config.tapo.device.pollingInterval.description = Refresh interval for refreshing the data in seconds (0=disabled). Set it below 10 seconds may cause communication issues (not recommed).
thing-type.config.tapo.device.pollingInterval.description = Refresh interval for refreshing the data in seconds (0=disabled). Setting it below 10 seconds may cause communication issues (not recommended).
thing-type.config.tapo.device.protocol.label = Protocol
thing-type.config.tapo.device.protocol.description = Communication Protocol
thing-type.config.tapo.device.protocol.option. = Direct HTTP
Expand Down Expand Up @@ -117,7 +117,7 @@ channel-group-type.tapocontrol.smartHubAlarms.label = Smart Hub Alarms
channel-group-type.tapocontrol.smartHubAlarms.description = Tapo Smart Hub Alarms
channel-group-type.tapocontrol.smartPlug.label = SmartPlug
channel-group-type.tapocontrol.smartPlug.description = Tapo Smart Plug Power Outlet
channel-group-type.tapocontrol.temperatureSensor.label = Wheater Sensor
channel-group-type.tapocontrol.temperatureSensor.label = Weather Sensor
channel-group-type.tapocontrol.temperatureSensor.description = Temperature and Humidity Sensor Channels

# channel types
Expand Down Expand Up @@ -282,7 +282,7 @@ channel-type.tapocontrol.effectOn.description = Switches the lightning effect on

# error messages

error-api-unknown-com-error = recieived unknown com error(9999)
error-api-unknown-com-error = received unknown com error (9999)
error-api-account = received account error (-2101)
error-api-aes-decode-fail = aes decode failed (-1005)
error-api-antitheft-conflict = device antitheft conflict (-2002)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@

<!-- Temperature Sensor -->
<channel-group-type id="temperatureSensor">
<label>Wheater Sensor</label>
<label>Weather Sensor</label>
<description>Temperature and Humidity Sensor Channels</description>
<channels>
<channel id="currentTemp" typeId="temperatureChannel"></channel>
Expand Down

0 comments on commit 6218fc4

Please sign in to comment.