Skip to content

Commit

Permalink
v0.4.3 Light & Device type hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
d.vlasov committed May 22, 2023
1 parent c5a13df commit b632425
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "zwave_me_ws"
version = "0.4.2"
version = "0.4.3"
description = "Library, implementing websocket connection to ZWave-Me"
authors = ["Dmitry Vlasov <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion zwave_me_ws/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.4.2"
__version__ = "0.4.3"
from .helpers import ZWaveMeData
from .ZWaveMe import ZWaveMe
7 changes: 7 additions & 0 deletions zwave_me_ws/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ def set_device_type(prepared_device):
if prepared_device["probeType"] == "light":
prepared_device['deviceType'] = 'lightMultilevel'
prepared_device = set_light_level(prepared_device)
elif prepared_device['deviceType'] == 'switchMultilevel':
prepared_device['deviceType'] = 'lightMultilevel'
prepared_device = set_light_level(prepared_device)
elif 'alarm' in prepared_device["probeType"]:
prepared_device["deviceType"] = "sensorBinary"
prepared_device = set_value_by_device_type(prepared_device)

return prepared_device


Expand Down

0 comments on commit b632425

Please sign in to comment.