Skip to content

Commit

Permalink
Fix Refrigerator class
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed May 12, 2024
1 parent cbac0f4 commit d4d0775
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions pychonet/Refrigerator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from pychonet.EchonetInstance import EchonetInstance
from pychonet.lib.epc_functions import (
DICT_41_ENABLED_DISABLED,
DICT_41_ENABLED_DISABLED_TEMPDISABLED,
DICT_41_OPEN_CLOSED,
DICT_41_ON_OFF,
Expand All @@ -22,16 +23,16 @@ def _03B7E0(edt):
ice = _int(edt[2:3])
vegetable = _int(edt[3:4])
multi_refrigerating = _int(edt[4:5])
reserved_forfuture_use = _int(edt[5:8])
# reserved_forfuture_use = _int(edt[5:8])
return {
"refrigerator": refrigerator if refrigerator else None,
"freezer": freezer if freezer else None,
"ice": ice if ice else None,
"vegetable": vegetable if vegetable else None,
"multi_refrigerating": multi_refrigerating if multi_refrigerating else None,
"reserved_forfuture_use": reserved_forfuture_use
if reserved_forfuture_use
else None,
# "reserved_forfuture_use": reserved_forfuture_use
# if reserved_forfuture_use
# else None,
}


Expand Down Expand Up @@ -86,11 +87,8 @@ class Refrigerator(EchonetInstance):
DICT_41_NORMAL_QUICK_STANDBY,
], # "Quick refrigeration function setting",
0xA4: [_int, DICT_41_ENABLED_DISABLED_TEMPDISABLED], # "Icemaker setting",
0xA5: [
_int,
DICT_41_ENABLED_DISABLED_TEMPDISABLED,
], # "Icemaker operation status",
0xA6: [_int, DICT_41_ENABLED_DISABLED_TEMPDISABLED], # "Icemaker tank status",
0xA5: [_int, DICT_41_ENABLED_DISABLED], # "Icemaker operation status",
0xA6: [_int, DICT_41_ENABLED_DISABLED], # "Icemaker tank status",
0xA8: [
_int,
DICT_41_ON_OFF,
Expand Down

0 comments on commit d4d0775

Please sign in to comment.