Skip to content

Commit 7d52a9d

Browse files
authored
fix: purifier default child lock state to none (#449)
1 parent adefe6a commit 7d52a9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pyvesync"
7-
version = "3.2.1"
7+
version = "3.2.2"
88
description = "pyvesync is a library to manage Etekcity Devices, Cosori Air Fryers, and Levoit Air Purifiers run on the VeSync app."
99
readme = "README.md"
1010
requires-python = ">=3.11"

src/pyvesync/base_devices/purifier_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def __init__(
109109
self.auto_preference_type: str | None = None
110110
self.auto_room_size: int | None = None
111111
self._air_quality_level: AirQualityLevel | None = None
112-
self.child_lock: bool = False
112+
self.child_lock: bool | None = None
113113
self.filter_open_state: bool = False
114114
self.display_status: str | None = None
115115
self.display_set_status: str | None = None
@@ -502,11 +502,11 @@ async def child_lock_off(self) -> bool:
502502

503503
@property
504504
@deprecated('Use self.state.child_lock instead.')
505-
def child_lock(self) -> bool:
505+
def child_lock(self) -> bool | None:
506506
"""Get child lock state.
507507
508508
Returns:
509-
bool : True if child lock is enabled, False if not.
509+
bool | None : True if child lock is enabled, False if not, None if unknown.
510510
"""
511511
return self.state.child_lock
512512

0 commit comments

Comments
 (0)