Fix SAT warnings (#14214)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2023-01-13 19:10:59 +01:00
committed by GitHub
parent 4dd60bb442
commit ee54882841
10 changed files with 57 additions and 52 deletions

View File

@@ -24,44 +24,44 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault
public class Commands {
public static byte[] DISCOVER_SEND = { 0x0c, 0x00, 0x30, 0x00, 0x11, 0x00, 0x12, 0x00, 0x13 };
public static byte[] DISCOVER_RECEIVE = { 0x0d, 0x00, 0x07, 0x00, 0x02, 0x02, 0x00 };
public static byte[] EMPTY = {};
public static byte[] GET_HISTORY = { 0x00, 0x30 };
public static byte[] REGISTER_0_READ = { 0x00, 0x04 };
public static byte[] REGISTER_1_READ = { 0x01, 0x04 };
public static byte[] REGISTER_1_WRITE = { 0x01, 0x06 };
public static byte[] REGISTER_2_READ = { 0x02, 0x04 };
public static byte[] REGISTER_4_READ = { 0x04, 0x04 };
public static byte[] REGISTER_6_READ = { 0x06, 0x04 };
public static byte[] MODE = { 0x14, 0x12 };
public static byte[] MANUAL_FAN_SPEED_STEP = { 0x15, 0x61 };
public static byte[] SUPPLY_FAN_SPEED = { 0x14, 0x50 };
public static byte[] EXTRACT_FAN_SPEED = { 0x14, 0x51 };
public static byte[] SUPPLY_FAN_STEP = { 0x14, 0x28 };
public static byte[] EXTRACT_FAN_STEP = { 0x14, 0x29 };
public static byte[] BASE_IN = { 0x14, 0x40 };
public static byte[] BASE_OUT = { 0x14, 0x41 };
public static byte[] BYPASS = { 0x14, 0x60 };
public static byte[] BYPASS_DEACTIVATION = { 0x14, 0x63 };
public static byte[] BOOST = { 0x15, 0x30 };
public static byte[] NIGHT_COOLING = { 0x15, 0x71 };
public static byte[] AUTOMATIC_BYPASS = { 0x17, 0x06 };
public static byte[] AUTOMATIC_RUSH_AIRING = { 0x17, 0x02 };
public static byte[] HUMIDITY = { 0x14, 0x70 };
public static byte[] ROOM_TEMPERATURE = { 0x03, 0x00 };
public static byte[] ROOM_TEMPERATURE_CALCULATED = { 0x14, (byte) 0x96 };
public static byte[] OUTDOOR_TEMPERATURE = { 0x03, 0x34 };
public static byte[] SUPPLY_TEMPERATURE = { 0x14, 0x73 };
public static byte[] EXTRACT_TEMPERATURE = { 0x14, 0x74 };
public static byte[] EXHAUST_TEMPERATURE = { 0x14, 0x75 };
public static byte[] BATTERY_LIFE = { 0x03, 0x0f };
public static byte[] FILTER_LIFE = { 0x14, 0x6a };
public static byte[] FILTER_PERIOD = { 0x14, 0x69 };
public static byte[] CURRENT_TIME = { 0x15, (byte) 0xe0 };
public static byte[] AWAY_TO = { 0x15, 0x20 };
public static byte[] AWAY_FROM = { 0x15, 0x21 };
public static byte[] UNIT_SERIAL = { 0x00, 0x25 }; // endpoint 4
public static byte[] UNIT_NAME = { 0x15, (byte) 0xe5 }; // endpoint 1
public static byte[] CCM_SERIAL = { 0x14, 0x6a }; // endpoint 0
public static final byte[] DISCOVER_SEND = { 0x0c, 0x00, 0x30, 0x00, 0x11, 0x00, 0x12, 0x00, 0x13 };
public static final byte[] DISCOVER_RECEIVE = { 0x0d, 0x00, 0x07, 0x00, 0x02, 0x02, 0x00 };
public static final byte[] EMPTY = {};
public static final byte[] GET_HISTORY = { 0x00, 0x30 };
public static final byte[] REGISTER_0_READ = { 0x00, 0x04 };
public static final byte[] REGISTER_1_READ = { 0x01, 0x04 };
public static final byte[] REGISTER_1_WRITE = { 0x01, 0x06 };
public static final byte[] REGISTER_2_READ = { 0x02, 0x04 };
public static final byte[] REGISTER_4_READ = { 0x04, 0x04 };
public static final byte[] REGISTER_6_READ = { 0x06, 0x04 };
public static final byte[] MODE = { 0x14, 0x12 };
public static final byte[] MANUAL_FAN_SPEED_STEP = { 0x15, 0x61 };
public static final byte[] SUPPLY_FAN_SPEED = { 0x14, 0x50 };
public static final byte[] EXTRACT_FAN_SPEED = { 0x14, 0x51 };
public static final byte[] SUPPLY_FAN_STEP = { 0x14, 0x28 };
public static final byte[] EXTRACT_FAN_STEP = { 0x14, 0x29 };
public static final byte[] BASE_IN = { 0x14, 0x40 };
public static final byte[] BASE_OUT = { 0x14, 0x41 };
public static final byte[] BYPASS = { 0x14, 0x60 };
public static final byte[] BYPASS_DEACTIVATION = { 0x14, 0x63 };
public static final byte[] BOOST = { 0x15, 0x30 };
public static final byte[] NIGHT_COOLING = { 0x15, 0x71 };
public static final byte[] AUTOMATIC_BYPASS = { 0x17, 0x06 };
public static final byte[] AUTOMATIC_RUSH_AIRING = { 0x17, 0x02 };
public static final byte[] HUMIDITY = { 0x14, 0x70 };
public static final byte[] ROOM_TEMPERATURE = { 0x03, 0x00 };
public static final byte[] ROOM_TEMPERATURE_CALCULATED = { 0x14, (byte) 0x96 };
public static final byte[] OUTDOOR_TEMPERATURE = { 0x03, 0x34 };
public static final byte[] SUPPLY_TEMPERATURE = { 0x14, 0x73 };
public static final byte[] EXTRACT_TEMPERATURE = { 0x14, 0x74 };
public static final byte[] EXHAUST_TEMPERATURE = { 0x14, 0x75 };
public static final byte[] BATTERY_LIFE = { 0x03, 0x0f };
public static final byte[] FILTER_LIFE = { 0x14, 0x6a };
public static final byte[] FILTER_PERIOD = { 0x14, 0x69 };
public static final byte[] CURRENT_TIME = { 0x15, (byte) 0xe0 };
public static final byte[] AWAY_TO = { 0x15, 0x20 };
public static final byte[] AWAY_FROM = { 0x15, 0x21 };
public static final byte[] UNIT_SERIAL = { 0x00, 0x25 }; // endpoint 4
public static final byte[] UNIT_NAME = { 0x15, (byte) 0xe5 }; // endpoint 1
public static final byte[] CCM_SERIAL = { 0x14, 0x6a }; // endpoint 0
}

View File

@@ -28,11 +28,11 @@ import org.openhab.core.thing.ThingTypeUID;
@NonNullByDefault
public class DanfossAirUnitBindingConstants {
public static String BINDING_ID = "danfossairunit";
public static final String BINDING_ID = "danfossairunit";
// The only thing type UIDs
public static ThingTypeUID THING_TYPE_AIRUNIT = new ThingTypeUID(BINDING_ID, "airunit");
public static final ThingTypeUID THING_TYPE_AIRUNIT = new ThingTypeUID(BINDING_ID, "airunit");
// The thing type as a set
public static Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.singleton(THING_TYPE_AIRUNIT);
public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.singleton(THING_TYPE_AIRUNIT);
}