Skip to content

Commit d9964b3

Browse files
committed
Fix update_helper-function for log_date
1 parent dc3e056 commit d9964b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def update_helper(data, devs, d_dict, d_id, e_type, key):
131131
if key != item[ATTR_ID]:
132132
continue
133133
devs[d_id][e_type][idx][ATTR_STATE] = data[key]
134-
134+
if type(data[key]) is list:
135+
devs[d_id][e_type][idx][ATTR_STATE] = data[key][0]
135136

136137
def check_model(name, v_name):
137138
"""Model checking before using version_to_model."""

0 commit comments

Comments
 (0)