]> git.basschouten.com Git - openhab-addons.git/commit
[mqtt.homeassistant] Mark disabled by default components as advanced channels (#14240)
authorCody Cutrer <cody@cutrer.us>
Fri, 27 Jan 2023 23:37:15 +0000 (16:37 -0700)
committerGitHub <noreply@github.com>
Fri, 27 Jan 2023 23:37:15 +0000 (00:37 +0100)
commitd97d212cd1edc910c9bb75bc9acd4eed391d642e
treea36f219d6f99acb49c44b89d9e15cd587ee4310a
parent83c20b0bd671f461f13b9294fbbfedc08cbab317
[mqtt.homeassistant] Mark disabled by default components as advanced channels (#14240)

openHAB doesn't have the concept of "enabled by default", since _everything_
is technically "disabled" until you link it to an item. It seems devices
use disabled by default on less common entities, such as zigbee2mqtt
marking a binary_sensor as a "backup" method to an update entity for
when an update is available, or a sensor as a "backup" method to a
select entity. So in that case, just hiding these channels unless the user
clicks "Show Advanced" seems to map best.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/ComponentChannel.java
bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/AbstractComponent.java
bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/Vacuum.java
bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/config/dto/AbstractChannelConfiguration.java