mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Change async_supports_streaming_input to an instance method (#147245)
This commit is contained in:
parent
ace18e540b
commit
9bcd74c449
@ -89,11 +89,11 @@ class TextToSpeechEntity(RestoreEntity, cached_properties=CACHED_PROPERTIES_WITH
|
|||||||
"""Return a mapping with the default options."""
|
"""Return a mapping with the default options."""
|
||||||
return self._attr_default_options
|
return self._attr_default_options
|
||||||
|
|
||||||
@classmethod
|
def async_supports_streaming_input(self) -> bool:
|
||||||
def async_supports_streaming_input(cls) -> bool:
|
|
||||||
"""Return if the TTS engine supports streaming input."""
|
"""Return if the TTS engine supports streaming input."""
|
||||||
return (
|
return (
|
||||||
cls.async_stream_tts_audio is not TextToSpeechEntity.async_stream_tts_audio
|
self.__class__.async_stream_tts_audio
|
||||||
|
is not TextToSpeechEntity.async_stream_tts_audio
|
||||||
)
|
)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user