Skip to content

Commit

Permalink
Merge pull request #234 from hnx116/master
Browse files Browse the repository at this point in the history
Add device LAP-C301S-WAAA
  • Loading branch information
webdjoe authored Jun 11, 2024
2 parents ccde038 + 99ddb65 commit d723d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/pyvesync/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ def call_api(api: str, method: str, json_object: Optional[dict] = None,
API_BASE_URL + api, json=json_object, headers=headers,
timeout=API_TIMEOUT
)
else:
raise NameError(f'Invalid method {method}')
except requests.exceptions.RequestException as e:
logger.debug(e)
except Exception as e: # pylint: disable=broad-except
Expand Down
2 changes: 1 addition & 1 deletion src/pyvesync/vesyncfan.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
},
'Core300S': {
'module': 'VeSyncAirBypass',
'models': ['Core300S', 'LAP-C301S-WJP', 'LAP-C302S-WUSB'],
'models': ['Core300S', 'LAP-C301S-WJP', 'LAP-C302S-WUSB', 'LAP-C301S-WAAA'],
'modes': ['sleep', 'off', 'auto', 'manual'],
'features': ['air_quality'],
'levels': list(range(1, 5))
Expand Down

0 comments on commit d723d53

Please sign in to comment.