Skip to content

🐛 Makes ResourceTypes serialisable#445

Open
BenoitAnastay wants to merge 1 commit intohome-assistant-libs:mainfrom
BenoitAnastay:patch-1
Open

🐛 Makes ResourceTypes serialisable#445
BenoitAnastay wants to merge 1 commit intohome-assistant-libs:mainfrom
BenoitAnastay:patch-1

Conversation

@BenoitAnastay
Copy link
Copy Markdown

For API calls with ResourceTypes as arguments, this Enum must be converted to string.

PR not tested as I'm on my phone

Fix #407

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
@marcelveldt
Copy link
Copy Markdown
Collaborator

This fix does not make a lot of sense, converting from/to string is handled by the (de)serializing logic.
Sorry, I can't accept it this way.

@BenoitAnastay
Copy link
Copy Markdown
Author

It does fix the updating of scenes with only one argument.

I don't see any better fix.

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

Successfully merging this pull request may close these issues.

ResourceType not serializable

2 participants