Skip to content

Commit

Permalink
feat: make preconditioning failure available (in API)
Browse files Browse the repository at this point in the history
The preconditioning element has an interesting field called
"failureCause" which reports error conditions like opened doors, battery
low state etc preventing the preconditioning to run. These errors are
interesting, so make them available in our API.

This field was removed in 619cefd, not sure why, so add it again.

Fixes #760.
  • Loading branch information
gernot-h committed Mar 5, 2024
1 parent d647a98 commit 1c069e4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,20 @@ class PreconditioningAirConditioning(object):
and the value is json key in definition.
"""
swagger_types = {
'failure_cause': 'str',
'status': 'str',
'updated_at': 'datetime',
'created_at': 'datetime'
}

attribute_map = {
'failure_cause': 'failureCause',
'status': 'status',
'updated_at': 'updatedAt',
'created_at': 'createdAt',
}

def __init__(self, status=None, updated_at=None, created_at=None): # noqa: E501
def __init__(self, failure_cause=None, status=None, updated_at=None, created_at=None): # noqa: E501
"""PreconditioningAirConditioning - a model defined in Swagger""" # noqa: E501

self._failure_cause = None
Expand All @@ -51,6 +53,8 @@ def __init__(self, status=None, updated_at=None, created_at=None): # noqa: E501
self._updated_at = None
self.discriminator = None

if failure_cause is not None:
self.failure_cause = failure_cause
if status is not None:
self.status = status
if updated_at is not None:
Expand Down

0 comments on commit 1c069e4

Please sign in to comment.