pyvesync 2.1.16__tar.gz → 2.1.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyvesync-2.1.16/src/pyvesync.egg-info → pyvesync-2.1.17}/PKG-INFO +1 -1
- {pyvesync-2.1.16 → pyvesync-2.1.17}/setup.py +1 -1
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync/vesyncfan.py +20 -1
- {pyvesync-2.1.16 → pyvesync-2.1.17/src/pyvesync.egg-info}/PKG-INFO +1 -1
- {pyvesync-2.1.16 → pyvesync-2.1.17}/LICENSE +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/MANIFEST.in +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/README.md +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/requirements.txt +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/setup.cfg +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync/__init__.py +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync/helpers.py +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync/vesync.py +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync/vesyncbasedevice.py +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync/vesyncbulb.py +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync/vesynckitchen.py +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync/vesyncoutlet.py +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync/vesyncswitch.py +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync.egg-info/SOURCES.txt +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync.egg-info/dependency_links.txt +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync.egg-info/requires.txt +0 -0
- {pyvesync-2.1.16 → pyvesync-2.1.17}/src/pyvesync.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: pyvesync
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.17
|
|
4
4
|
Summary: pyvesync is a library to manage Etekcity Devices, Cosori Air Fryers and Levoit Air Purifiers run on the VeSync app.
|
|
5
5
|
Home-page: https://github.com/webdjoe/pyvesync
|
|
6
6
|
Author: Mark Perdue, Joe Trabulsy
|
|
@@ -10,7 +10,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
|
|
10
10
|
|
|
11
11
|
setup(
|
|
12
12
|
name='pyvesync',
|
|
13
|
-
version='2.1.
|
|
13
|
+
version='2.1.17',
|
|
14
14
|
description='pyvesync is a library to manage Etekcity\
|
|
15
15
|
Devices, Cosori Air Fryers and Levoit Air \
|
|
16
16
|
Purifiers run on the VeSync app.',
|
|
@@ -1573,7 +1573,19 @@ class VeSyncAir131(VeSyncBaseDevice):
|
|
|
1573
1573
|
def __init__(self, details, manager):
|
|
1574
1574
|
"""Initilize air purifier class."""
|
|
1575
1575
|
super().__init__(details, manager)
|
|
1576
|
-
|
|
1576
|
+
self.enabled = True
|
|
1577
|
+
self._config_dict = model_features(self.device_type)
|
|
1578
|
+
self._features = self._config_dict.get('features', [])
|
|
1579
|
+
if not isinstance(self._config_dict.get('modes'), list):
|
|
1580
|
+
logger.error(
|
|
1581
|
+
'Please set modes for %s in the configuration',
|
|
1582
|
+
self.device_type)
|
|
1583
|
+
raise KeyError(f'Modes not set in configuration for {self.device_name}')
|
|
1584
|
+
self.modes = self._config_dict['modes']
|
|
1585
|
+
if 'air_quality' in self._features:
|
|
1586
|
+
self.air_quality_feature = True
|
|
1587
|
+
else:
|
|
1588
|
+
self.air_quality_feature = False
|
|
1577
1589
|
self.details = {}
|
|
1578
1590
|
|
|
1579
1591
|
def get_details(self) -> None:
|
|
@@ -1989,6 +2001,7 @@ class VeSyncHumid200300S(VeSyncBaseDevice):
|
|
|
1989
2001
|
"""Build humidifier status dictionary."""
|
|
1990
2002
|
self.enabled = dev_dict.get('enabled')
|
|
1991
2003
|
self.device_status = 'on' if self.enabled else 'off'
|
|
2004
|
+
self.mode = dev_dict.get('mode', None)
|
|
1992
2005
|
self.details['humidity'] = dev_dict.get('humidity', 0)
|
|
1993
2006
|
self.details['mist_virtual_level'] = dev_dict.get(
|
|
1994
2007
|
'mist_virtual_level', 0)
|
|
@@ -2798,6 +2811,12 @@ class VeSyncSuperior6000S(VeSyncBaseDevice):
|
|
|
2798
2811
|
"""Get Humidity level."""
|
|
2799
2812
|
return self.details['humidity']
|
|
2800
2813
|
|
|
2814
|
+
# Duplicate for compatibility
|
|
2815
|
+
@property
|
|
2816
|
+
def humidity(self):
|
|
2817
|
+
"""Get Humidity level."""
|
|
2818
|
+
return self.details['humidity']
|
|
2819
|
+
|
|
2801
2820
|
@property
|
|
2802
2821
|
def mist_level(self):
|
|
2803
2822
|
"""Get current mist level."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: pyvesync
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.17
|
|
4
4
|
Summary: pyvesync is a library to manage Etekcity Devices, Cosori Air Fryers and Levoit Air Purifiers run on the VeSync app.
|
|
5
5
|
Home-page: https://github.com/webdjoe/pyvesync
|
|
6
6
|
Author: Mark Perdue, Joe Trabulsy
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|