Skip to content

Commit

Permalink
πŸ› Makes ResourceTypes serialisable
Browse files Browse the repository at this point in the history
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
  • Loading branch information
BenoitAnastay authored Nov 27, 2024
1 parent 65bf8ad commit 6fb8585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohue/v2/models/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from enum import Enum


class ResourceTypes(Enum):
class ResourceTypes(str, Enum):
"""
Type of the supported resources.
Expand Down

0 comments on commit 6fb8585

Please sign in to comment.