Skip to content

Commit

Permalink
Fixed the assertion on color
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Mulliken committed Jun 30, 2021
1 parent 1dc19b1 commit 01b70dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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.1.0-beta.15
version = 0.1.0-beta.16
author = Mulliken LLC
author_email = [email protected]
description = Python client for private Wyze API
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sonar.organization=joshuamulliken

# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=wyzeapy
sonar.projectVersion=0.1.0-beta.15
sonar.projectVersion=0.1.0-beta.16

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
Expand Down
2 changes: 1 addition & 1 deletion src/wyzeapy/services/bulb_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def color(self) -> Optional[str]:

@color.setter
def color(self, value) -> None:
assert re.match(r"^([A-F\d]{6}|[A-F\d]{3})$", value) is not None
assert re.match(r"^([A-Fa-f\d]{6}|[A-Fa-f\d]{3})$", value) is not None
self._color = value


Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class TestHMSService(unittest.IsolatedAsyncioTestCase):
async def test_get_hms_id(self):
client = await login()
hms_service = await client.hms_service
hms_id = await hms_service.hms_id
hms_id = hms_service.hms_id
assert hms_id == "c35aecadc9d24e42b799e0be9c2ffc2f"

await client.async_close()
Expand Down

0 comments on commit 01b70dc

Please sign in to comment.