Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues while setup the integration #3

Closed
sergio-nuvemshop-zz opened this issue Feb 17, 2021 · 1 comment
Closed

Issues while setup the integration #3

sergio-nuvemshop-zz opened this issue Feb 17, 2021 · 1 comment
Labels
no action requested no action to perform

Comments

@sergio-nuvemshop-zz
Copy link

sergio-nuvemshop-zz commented Feb 17, 2021

This is what I am getting in the logs when I try to install de integration through HACS. I already bought prepaid credits on Worldtides website. Any idea what is going wrong?

Error while setting up worldtidesinfocustom platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 198, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/worldtidesinfocustom/sensor.py", line 82, in setup_platform
    tides.retrieve_tide_station()
  File "/config/custom_components/worldtidesinfocustom/sensor.py", line 299, in retrieve_tide_station
    self.credit_used = self.credit_used + self.init_data["callCount"]
KeyError: 'callCount'

And here is what I have in my configuration.yaml

sensor:
  - platform: worldtidesinfocustom
    name: tides
    api_key: 77c3e8fc-XXXX-40c7-b8b6-XXXXXXXX
    latitude: 45.61949378902948
    longitude: -1.0318721687376207
@sergio-nuvemshop-zz
Copy link
Author

24 hours after I posted the issue, the integration started working without me made any change. I assume that is related to the time that has elapsed after I bought the credits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no action requested no action to perform
Projects
None yet
Development

No branches or pull requests

2 participants