Refactor _supported_features (#565)

* initial commit

* change features to dict

* another slight refactor
This commit is contained in:
Benjamin Auquite 2023-04-10 12:07:31 -05:00 • committed by GitHub
commit a888afd6dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 66 additions and 31 deletions

View file

@ -273,6 +273,8 @@ VALIDATION_TUPLES = [
),
]
CONST_COLOR = "color"
def timedelta_as_int(value):
"""Convert a `datetime.timedelta` object to an integer.