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

Failed to setup sureha when HA starts #23

Open
seafoodrice opened this issue Oct 21, 2021 · 0 comments
Open

Failed to setup sureha when HA starts #23

seafoodrice opened this issue Oct 21, 2021 · 0 comments

Comments

@seafoodrice
Copy link

Error occurred when setting up the integration during HA Core version 2021.10.6 starts.

2021-10-21 21:14:37 ERROR (MainThread) [custom_components.sureha] Unexpected error fetching sureha_sensors data: object of type 'int' has no len()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
return await self.update_method()
File "/config/custom_components/sureha/init.py", line 98, in async_update_data
return await spc.surepy.get_entities(refresh=True)
File "/usr/local/lib/python3.9/site-packages/surepy/init.py", line 391, in get_entities
await self.get_latest_anonymous_drinks(household_id=household_id)
File "/usr/local/lib/python3.9/site-packages/surepy/init.py", line 216, in get_latest_anonymous_drinks
household_timeline = await self.get_household_timeline(household_id, entries=50)
File "/usr/local/lib/python3.9/site-packages/surepy/init.py", line 266, in get_household_timeline
if timeline := await self.sac.call(method="GET", resource=resource):
File "/usr/local/lib/python3.9/site-packages/surepy/client.py", line 281, in call
responselen = len(response_data.get("data", 0))
TypeError: object of type 'int' has no len()

I just had the feeder connect and Felaqua setup and may not have data in the account.

thanks in advance.

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

No branches or pull requests

1 participant