Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106247

Can't get custom component to create a new entry in .storage

$
0
0

Does anyone have a moment to cast their eyes over this?

It’s a fork of the nationalrail component, where I’m trying to standardise storage and usage of the API token, the sensor loads, but I get

Traceback (most recent call last):
  File "/config/custom_components/nationalrailuk/client.py", line 264, in async_get_data
    data = self.process_data(raw_data)
  File "/config/custom_components/nationalrailuk/client.py", line 203, in process_data
    expected_arrival = rebuild_date(time_base, dest["st"])
                                               ~~~~^^^^^^
TypeError: string indices must be integers, not 'str'

and Error validating API token: unexpected data from api

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>