diff --git a/modules/features/teamsbot/service.py b/modules/features/teamsbot/service.py index 83e7a251..5457758e 100644 --- a/modules/features/teamsbot/service.py +++ b/modules/features/teamsbot/service.py @@ -714,9 +714,10 @@ class TeamsbotService: return # Determine response channel (voice, chat, or both) - # Normalize to string for reliable comparison (model_copy may skip enum coercion) - channelStr = str(self.config.responseChannel).lower().strip() - logger.info(f"Response channel: '{channelStr}' (raw={self.config.responseChannel!r})") + # Extract the raw value: enum.value gives "voice", str(enum) gives "TeamsbotResponseChannel.voice" + channelRaw = self.config.responseChannel + channelStr = (channelRaw.value if hasattr(channelRaw, 'value') else str(channelRaw)).lower().strip() + logger.info(f"Response channel: '{channelStr}' (raw={channelRaw!r})") sendVoice = channelStr in ("voice", "both") sendChat = channelStr in ("chat", "both")