mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Add STT checks to pylint plugin (#78284)
This commit is contained in:
parent
7871a517a8
commit
5e9c0399eb
@ -2072,6 +2072,42 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
"stt": [
|
||||||
|
ClassTypeHintMatch(
|
||||||
|
base_class="Provider",
|
||||||
|
matches=[
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="supported_languages",
|
||||||
|
return_type="list[str]",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="supported_formats",
|
||||||
|
return_type="list[AudioFormats]",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="supported_codecs",
|
||||||
|
return_type="list[AudioCodecs]",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="supported_bit_rates",
|
||||||
|
return_type="list[AudioBitRates]",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="supported_sample_rates",
|
||||||
|
return_type="list[AudioSampleRates]",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="supported_channels",
|
||||||
|
return_type="list[AudioChannels]",
|
||||||
|
),
|
||||||
|
TypeHintMatch(
|
||||||
|
function_name="async_process_audio_stream",
|
||||||
|
arg_types={1: "SpeechMetadata", 2: "StreamReader"},
|
||||||
|
return_type="SpeechResult",
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
"switch": [
|
"switch": [
|
||||||
ClassTypeHintMatch(
|
ClassTypeHintMatch(
|
||||||
base_class="Entity",
|
base_class="Entity",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user