Skip to content

Commit

Permalink
Fix for operation_mode not set
Browse files Browse the repository at this point in the history
  • Loading branch information
rospogrigio committed Oct 20, 2022
1 parent f0f21bf commit 7efe9e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/daikin_residential/daikin_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def getCommandSet(self, param):
cmd_set = DAIKIN_CMD_SETS[param].copy()
if "%operationMode%" in cmd_set[2]:
operation_mode = self.getValue(ATTR_OPERATION_MODE)
cmd_set[2] = cmd_set[2].replace("%operationMode%", operation_mode)
if operation_mode:
cmd_set[2] = cmd_set[2].replace("%operationMode%", operation_mode)
return cmd_set

def getData(self, param):
Expand Down

0 comments on commit 7efe9e4

Please sign in to comment.