Skip to content

Commit 38bc617

Browse files
authored
Merge pull request webdjoe#129 from webdjoe/humid-bug-fix
Humid bug fix
2 parents c41eb8a + 9da4d22 commit 38bc617

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='pyvesync',
13-
version='2.0.0',
13+
version='2.0.1',
1414
description='pyvesync is a library to manage Etekcity\
1515
Devices and Levoit Air Purifier',
1616
long_description=long_description,

src/pyvesync/vesyncfan.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
'Classic300S': {
1212
'module': 'VeSyncHumid200300S',
1313
'models': ['Classic300S', 'LUH-A601S-WUSB'],
14-
'features': ['night_light'],
14+
'features': ['nightlight'],
1515
'mist_modes': ['auto', 'sleep', 'manual'],
1616
'mist_levels': list(range(1, 10))
1717
},
1818
'Classic200S': {
1919
'module': 'VeSyncHumid200S',
2020
'models': ['Classic200S'],
21-
'features': ['nightlight'],
21+
'features': [],
2222
'mist_modes': ['auto', 'manual'],
2323
'mist_levels': list(range(1, 10))
2424
},
@@ -29,7 +29,7 @@
2929
'LUH-D301S-WJP',
3030
'LUH-D301S-WEU'],
3131
'features': [],
32-
'mist_modes': ['auto', 'sleep', 'manual'],
32+
'mist_modes': ['auto', 'manual'],
3333
'mist_levels': list(range(1, 3))
3434
},
3535
'LV600S': {
@@ -39,7 +39,7 @@
3939
'LUH-A602S-WEUR',
4040
'LUH-A602S-WEU',
4141
'LUH-A602S-WJP'],
42-
'features': ['warm_mist', 'night_light'],
42+
'features': ['warm_mist', 'nightlight'],
4343
'mist_modes': ['humidity', 'sleep', 'manual'],
4444
'mist_levels': list(range(1, 10)),
4545
'warm_mist_levels': [0, 1, 2, 3]
@@ -943,6 +943,7 @@ def get_details(self) -> None:
943943
)
944944
if r is None or not isinstance(r, dict):
945945
logger.debug("Error getting status of %s ", self.device_name)
946+
return
946947
outer_result = r.get('result', {})
947948
inner_result = None
948949

0 commit comments

Comments
 (0)