[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:
Florian Hotze
2025-12-23 15:35:18 +01:00
committed by GitHub
parent ae7d7a8188
commit 7962f9ad6d
@@ -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,