mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
[astro] Don't attempt to publish state to trigger channels on linked (#19843)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
This commit is contained in:
+4
@@ -185,6 +185,10 @@ public abstract class AstroThingHandler extends BaseThingHandler {
|
||||
logger.error("Cannot find channel for {}", channelUID);
|
||||
return;
|
||||
}
|
||||
if (channel.getKind() == TRIGGER) {
|
||||
// if the channel is a trigger channel, there is no state to publish
|
||||
return;
|
||||
}
|
||||
try {
|
||||
AstroChannelConfig config = channel.getConfiguration().as(AstroChannelConfig.class);
|
||||
updateState(channelUID, PropertyUtils.getState(channelUID, config, planet,
|
||||
|
||||
Reference in New Issue
Block a user