Fix ConfigurableService deprecations (#8526)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2020-09-22 08:48:05 +02:00
committed by GitHub
parent c82f6c4e77
commit 1f7da6b669
7 changed files with 19 additions and 32 deletions

View File

@@ -41,10 +41,8 @@ import org.slf4j.LoggerFactory;
* @author Jochen Hiller - Initial contribution and API
* @author Laurent Garnier - add support for OGG and AAC audio formats
*/
@Component(configurationPid = "org.openhab.voicerss", property = { Constants.SERVICE_PID + "=org.openhab.voicerss",
ConfigurableService.SERVICE_PROPERTY_DESCRIPTION_URI + "=voice:voicerss",
ConfigurableService.SERVICE_PROPERTY_LABEL + "=VoiceRSS Text-to-Speech",
ConfigurableService.SERVICE_PROPERTY_CATEGORY + "=voice" })
@Component(configurationPid = "org.openhab.voicerss", property = Constants.SERVICE_PID + "=org.openhab.voicerss")
@ConfigurableService(category = "voice", label = "VoiceRSS Text-to-Speech", description_uri = "voice:voicerss")
public class VoiceRSSTTSService implements TTSService {
/** Cache folder name is below userdata/voicerss/cache. */