-
Notifications
You must be signed in to change notification settings - Fork 37
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
ResourceType not serializable #407
Comments
I don't understand this report. Can you be more descriptive ? |
When I need to use ScenePut, to update a scene I get the error The ResourceType class is not converted to string (serialised) when the request is sent to the hue API. In my exemple I had to use string instead of class to makes it work |
Maybe we need to update this line with class ResourceTypes(str, Enum): aiohue/aiohue/v2/models/resource.py Line 7 in 65bf8ad
|
For API calls with ResourceTypes as arguments, this Enum must be converted to string. PR not tested as I'm on my phone Fix home-assistant-libs#407
I tried to update scenes actions but I had to rewrite
ResourceIdentifier
to use string instead ofResourceType
What I did to be able to update my scenes : https://gist.github.com/BenoitAnastay/2b1a53b04c3d1a7cc881eeea3439924d
The text was updated successfully, but these errors were encountered: