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

Authentication works, but "Failed to set up" due to "7 is not a valid ProductType" #652

Closed
1 task done
ProLoser opened this issue Nov 7, 2021 · 6 comments · Fixed by #656
Closed
1 task done
Labels
bug Something isn't working

Comments

@ProLoser
Copy link

ProLoser commented Nov 7, 2021

Did you read the instructions?

The problem

I tried to enable advanced debugging but I don't see any difference in the output logs. The integration appeared to authenticated with Tahoma North America but it does not appear to complete the setup process.

What version of this integration (ha-tahoma) has the issue?

2.9.3

What version of Home Assistant Core has the issue?

core-2021.11.1

Which gateway / hub do you use?

Somfy Tahoma

Device model

Cover (blinds)

Home Assistant log

7 is not a valid ProductType
Traceback (most recent call last):
  File "/config/custom_components/tahoma/__init__.py", line 141, in async_setup_entry
    devices, scenarios, gateways, places = await asyncio.gather(*tasks)
  File "/usr/local/lib/python3.9/site-packages/backoff/_async.py", line 133, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/pyhoma/client.py", line 243, in get_devices
    devices = [Device(**d) for d in humps.decamelize(response)]
  File "/usr/local/lib/python3.9/site-packages/pyhoma/client.py", line 243, in <listcomp>
    devices = [Device(**d) for d in humps.decamelize(response)]
  File "/usr/local/lib/python3.9/site-packages/pyhoma/models.py", line 79, in __init__
    self.type = ProductType(type)
  File "/usr/local/lib/python3.9/enum.py", line 384, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/lib/python3.9/enum.py", line 702, in __new__
    raise ve_exc
ValueError: 7 is not a valid ProductType

Additional information

No response

@ProLoser ProLoser added the bug Something isn't working label Nov 7, 2021
@iMicknl
Copy link
Owner

iMicknl commented Nov 7, 2021

@ProLoser thanks for reporting! We need to fix this in the underlying library, but you are the first user with this ProductType.

Would you be willing to work with me via Discord (iMick #1903) sometime? It would be great to add your setup definition (anonymized) to our test suite, so that these bugs don't happen again.

@ProLoser
Copy link
Author

ProLoser commented Nov 7, 2021

It says invite expired.

@ProLoser
Copy link
Author

ProLoser commented Nov 8, 2021

@iMicknl I'm happy to help but that discord invite link does not work

@iMicknl
Copy link
Owner

iMicknl commented Nov 8, 2021

The chat link in the README is up to date.
https://github.com/iMicknl/ha-tahoma

@ProLoser
Copy link
Author

Confirmed everything works in the latest release!

@ProLoser
Copy link
Author

@iMicknl thank you so much for fixing this! Do you have a sponsor or buy-me-a-beer or preferred OSS I can donate to in thanks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants