Drop UNIT_ prefix for percentage constant (#39383)
This commit is contained in:
1 parent
cdc93d7110
commit
d2b1918e9c
183 files changed
+639
-661
No files matched your search
@@ -6,7 +6,7 @@ from pycsspeechtts import pycsspeechtts
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider
|
||||
from homeassistant.const import CONF_API_KEY, CONF_TYPE, UNIT_PERCENTAGE
|
||||
from homeassistant.const import CONF_API_KEY, CONF_TYPE, PERCENTAGE
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
CONF_GENDER = "gender"
|
||||
@@ -122,8 +122,8 @@ class MicrosoftProvider(Provider):
|
||||
self._gender = gender
|
||||
self._type = ttype
|
||||
self._output = DEFAULT_OUTPUT
|
||||
self._rate = f"{rate}{UNIT_PERCENTAGE}"
|
||||
self._volume = f"{volume}{UNIT_PERCENTAGE}"
|
||||
self._rate = f"{rate}{PERCENTAGE}"
|
||||
self._volume = f"{volume}{PERCENTAGE}"
|
||||
self._pitch = pitch
|
||||
self._contour = contour
|
||||
self._region = region
|
||||
|
||||
Reference in new issue
Block a user