Sensor Avanza Stock Fehler

Hallo,

bin ganz neu in HA. Ich habe avanza Stock installiert und wollte mir Aktien Kurs anzeigen lassen, leider bekomme ich folgende Meldung:

Logger: homeassistant.config
Quelle: config.py:939
Erstmals aufgetreten: 09:54:47 (1 Vorkommnis) 
Zuletzt protokolliert: 09:54:47

Invalid config for 'sensor' at configuration.yaml, line 12: required key 'platform' not provided, please check the docs at https://www.home-assistant.io/integrations/sensor

und sehe die Entität auch nicht um es für eine Karte auswählen zu können

in der Configuration Yaml folgendes hinterlegt:

Loads default set of integrations. Do not remove.
default_config:
Load frontend themes from the themes folder
frontend:themes: !include_dir_merge_named themes
automation: !include automations.yamlscript: !include scripts.yamlscene: !include scenes.yamlsensor: !include sensors.yaml

in der sensors.yaml:

sensor:
 - platform: avanza_stockstock:
  - id: 194698name: Gamestop
  - id: 450548name: AMC

Ist das die falsche YAML?

:crayon:by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)
s.a.: (Neues Update & Features - Hier in der Community 🫶)

Hast Du Dir Doku angeschaut? Laut dieser sollte die Konfiguration nach diesem Schema aufgebaut sein.

sensor:
  - platform: avanza_stock
    stock:
      - id: 5361
        name: Avanza Bank Holding
      - id: 8123
        name: Home Assistant

Gruß Osorkon

ah super danke dir… habs gefunden

aber webnn man eine Sensors Datei hat kann bzw,. muss oben sensor: weg