Skip to content

Commit 0aa8608

Browse files
authored
Merge pull request #81 from ethemcemozkan/patch-1
hot water zone compatibility bug fix
2 parents 3bf0235 + 7472676 commit 0aa8608

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tadoasync/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,16 @@ class DazzleMode(DataClassORJSONMixin):
147147
"""DazzleMode model represents the dazzle mode settings of a zone."""
148148

149149
supported: bool
150-
enabled: bool
150+
enabled: bool = field(default=False)
151151

152152

153153
@dataclass
154154
class OpenWindowDetection(DataClassORJSONMixin):
155155
"""OpenWindowDetection model represents the open window detection settings."""
156156

157157
supported: bool
158-
enabled: bool
159-
timeout_in_seconds: int = field(metadata=field_options(alias="timeoutInSeconds"))
158+
enabled: bool = field(default=False)
159+
timeout_in_seconds: int = field(metadata=field_options(alias="timeoutInSeconds"), default=0)
160160

161161

162162
@dataclass

0 commit comments

Comments
 (0)