FaserF / ha-deutschebahn

Unofficial HA DB Integration, due to removal as of Home Assistant 2022.11
Apache License 2.0
50 stars 7 forks source link

Problem with Version 2.0.3 #6

Closed namorwoy closed 1 year ago

namorwoy commented 1 year ago

The problem

Hi since version 2.0.1 my connection doesn't work anymore. I get the following error when validating my Configuration.yaml: "Invalid config for [sensor.deutschebahn]: [from] is an invalid option for [sensor.deutschebahn]. Check: sensor.deutschebahn->from. (See ?, line ?)."

My entry in Configuration.yaml is:

Deutsche Bahn

sensor:

template: -sensor:

Just updated the version to V. 2.0.3 via HACS.

What version of Home Assistant Core has the issue?

2022.10.4

What version of DeutscheBahn Integration has the issue?

2.0.3

What type of installation are you running?

Home Assistant Supervised

Example YAML snippet

# Deutsche Bahn
sensor:
  - platform: deutschebahn
    from: Haslach Bad, Freiburg im Breisgau
    to: Europaplatz, Freiburg im Breisgau

template:
   -sensor:
    - name : "haslach_bad Next departure"
      state: "{{ state_attr('sensor.haslach_bad_to_europaplatz', 'next') }}"

Anything in the logs that might be useful for us?

No response

Additional information

No response

FaserF commented 1 year ago

Hi, Please read the breaking changes from the changelog here: https://github.com/FaserF/ha-deutschebahn/releases/tag/2.0.1

You will have to set up the integration now from the UI instead of the configuration.yaml file. Please have a look here on how to do it: https://github.com/FaserF/ha-deutschebahn#migrate-from-the-old-official-ha-integration-or-from-this-v1x-to-this-2x-version