[mqtt.homeassistant] Fix MQTT Vacuum serialization names (#11550)
While integrating the review comments, I did not remember that some variable names are written as they are because they result from some deserialization. This small PR fixes this. Signed-off-by: Stefan Triller <github@stefantriller.de>
This commit is contained in:
parent
2a8e9b6e93
commit
062f454406
@ -24,6 +24,8 @@ import org.openhab.binding.mqtt.generic.values.NumberValue;
|
|||||||
import org.openhab.binding.mqtt.generic.values.TextValue;
|
import org.openhab.binding.mqtt.generic.values.TextValue;
|
||||||
import org.openhab.binding.mqtt.homeassistant.internal.config.dto.AbstractChannelConfiguration;
|
import org.openhab.binding.mqtt.homeassistant.internal.config.dto.AbstractChannelConfiguration;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A MQTT vacuum, following the https://www.home-assistant.io/components/vacuum.mqtt/ specification.
|
* A MQTT vacuum, following the https://www.home-assistant.io/components/vacuum.mqtt/ specification.
|
||||||
*
|
*
|
||||||
@ -69,16 +71,24 @@ public class Vacuum extends AbstractComponent<Vacuum.ChannelConfiguration> {
|
|||||||
super("MQTT Vacuum");
|
super("MQTT Vacuum");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SerializedName("command_topic")
|
||||||
protected @Nullable String commandTopic;
|
protected @Nullable String commandTopic;
|
||||||
|
@SerializedName("state_topic")
|
||||||
protected String stateTopic = "";
|
protected String stateTopic = "";
|
||||||
|
@SerializedName("send_command_topic")
|
||||||
protected @Nullable String sendCommandTopic; // for custom_command
|
protected @Nullable String sendCommandTopic; // for custom_command
|
||||||
|
|
||||||
// [start, pause, stop, return_home, battery, status, locate, clean_spot, fan_speed, send_command]
|
// [start, pause, stop, return_home, battery, status, locate, clean_spot, fan_speed, send_command]
|
||||||
|
@SerializedName("supported_features")
|
||||||
protected String[] supportedFeatures = new String[] {};
|
protected String[] supportedFeatures = new String[] {};
|
||||||
|
@SerializedName("set_fan_speed_topic")
|
||||||
protected @Nullable String setFanSpeedTopic;
|
protected @Nullable String setFanSpeedTopic;
|
||||||
|
@SerializedName("fan_speed_list")
|
||||||
protected String[] fanSpeedList = new String[] {};
|
protected String[] fanSpeedList = new String[] {};
|
||||||
|
|
||||||
|
@SerializedName("json_attributes_topic")
|
||||||
protected @Nullable String jsonAttributesTopic;
|
protected @Nullable String jsonAttributesTopic;
|
||||||
|
@SerializedName("json_attributes_template")
|
||||||
protected @Nullable String jsonAttributesTemplate;
|
protected @Nullable String jsonAttributesTemplate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user