-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
SurePy initializes with 'TypeError: object of type 'int' has no len()' #163
Comments
Appears to still be a live issue. Any workarounds? |
@gracar2002 Well, I swapped to SureHA - same basis, but frequently updated and aligned to the most current HA versions. For me that solved the issue. Though, I do not really understand why this official repo is not updated more frequently, with the "developer" repository SureHA. SureHA HACS integration @ github.com - release 0.4.2 (15.09.2021) --> SurePy @ PyPi.org - release 0.9.0a0 (04.04.2023) |
Happens on SureHA too - note that there is an open issue, |
The problem
I installed the Sure PetCare integration for Home Assistant and it seemed to work at first for my cat flap and the felaqua water fountain, but I keep getting the error
TypeError: object of type 'int' has no len().
I have defined one household, with one pet and one person in the SurePetCare APP. Within the SurePetCare APP everything seems to work like a charm.It seems as if the length of a string object should be determined, but the object is an integer, but I do not know.
The trouble seems to result from this line of the [surepy] repository:
surepy/surepy/client.py
Line 281 in ff1e396
What version of Home Assistant Core has the issue?
2022.10.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Sure PetCare
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
The text was updated successfully, but these errors were encountered: