chatziko / ha-google-cloud-stt

Use Google Cloud Speech-to-Text in Home Assistant.
53 stars 13 forks source link

Error when validating the yaml file #5

Closed M1cN closed 8 months ago

M1cN commented 8 months ago

Hi, i'm getting the following error message when validating the yaml file:

Package stt setup failed. Component stt cannot be merged. Expected a dict.

yaml:

stt:
  - platform: google_cloud_stt
    key_file: google_service_account.json
    model: command_and_search
chatziko commented 8 months ago

Are you using packages to split your configuration? If so try first to make it work in the main configuration.yaml, and figure out the splitting later.

M1cN commented 8 months ago

Are you using packages to split your configuration? If so try first to make it work in the main configuration.yaml, and figure out the splitting later.

Thanks, i have it working now. But why isn't this splitable like all other configurations?

chatziko commented 8 months ago

The doc mentions some rules about what can be used in a package, but I never used them myself so I have no idea. Could be also related to #3.

chatziko commented 8 months ago

I had a look at the code, indeed the problem why in cannot be included in a package is the missing PLATFORM_SCHEMA, essentially the same issue as #3. So I'm closing this.