Skip to content

Commit

Permalink
Fix Headphones not recognized by DeviceTypes enum
Browse files Browse the repository at this point in the history
See: SecKatie/ha-wyzeapi#126 (comment)

Why: In order to fix a crash where headphones were not recognized as a valid device type

How: Add headphones to the DeviceTypes enum in base_client.py
  • Loading branch information
Joshua Mulliken committed Apr 8, 2021
1 parent 7759839 commit cf57847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
# replace with your username:
name = wyzeapy
version = 0.0.11
version = 0.0.12
author = Mulliken LLC
author_email = joshua@mulliken.net
description = Python client for private Wyze API
Expand Down
3 changes: 2 additions & 1 deletion src/wyzeapy/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import requests

PHONE_SYSTEM_TYPE = "1"
API_KEY = 'WMXHYf79Nr5gIlt3r0r7p9Tcw5bvs6BB4U8O8nGJ'
API_KEY = "WMXHYf79Nr5gIlt3r0r7p9Tcw5bvs6BB4U8O8nGJ"
APP_VERSION = "2.18.43"
APP_VER = "com.hualai.WyzeCam___2.18.43"
APP_NAME = "com.hualai.WyzeCam"
Expand All @@ -35,6 +35,7 @@ class DeviceTypes(Enum):
GATEWAY = "gateway"
COMMON = "Common"
VACUUM = "JA_RO2"
HEADPHONES = "JA.SC"


class PropertyIDs(Enum):
Expand Down

0 comments on commit cf57847

Please sign in to comment.