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

Fix writing optional Nullable values #828

Merged
merged 2 commits into from
Jul 22, 2024
Merged

Conversation

marcelveldt
Copy link
Contributor

Fix writing an attribute value to 'null' which is marked as optional 'None'.
Bit of an edge case but I ran into it with the OnOff.Attributes.StartUpOnOff attribute which is typed as typing.Union[None, Nullable, OnOff.Enums.StartUpOnOffEnum]

To set it to defaults, you need to send an explicit null

@marcelveldt marcelveldt added the bugfix Pull request that fixes a (known) issue/bug label Jul 22, 2024
@marcelveldt marcelveldt merged commit a61c4b0 into main Jul 22, 2024
4 checks passed
@marcelveldt marcelveldt deleted the fix-write-optional-null-value branch July 22, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes a (known) issue/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants