forked from ajmarks/gekitchen
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from jhndrx/dehumidifier-fixes
Dehumidifier Current Humidity Value Fix
- Loading branch information
Showing
4 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""GE Home SDK""" | ||
|
||
__version__ = "0.5.13" | ||
__version__ = "0.5.14" | ||
|
||
|
||
from .clients import * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .erd_dehumidifier_maintenance_converter import ErdDehumidifierMaintenanceConverter | ||
from .erd_dehumidifier_maintenance_converter import ErdDehumidifierMaintenanceConverter | ||
from .erd_dehumidifier_current_humidity_converter import ErdDehumidifierCurrentHumidityConverter |
10 changes: 10 additions & 0 deletions
10
gehomesdk/erd/converters/dehumidifier/erd_dehumidifier_current_humidity_converter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from ..abstract import ErdReadWriteConverter | ||
from ..primitives import * | ||
|
||
|
||
class ErdDehumidifierCurrentHumidityConverter(ErdReadWriteConverter[int]): | ||
def erd_decode(self, value: str) -> int: | ||
try: | ||
return erd_decode_int(value) & 0xFF | ||
except: | ||
return 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters