Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsuku authored Jul 27, 2021
1 parent be41ef5 commit 7cb9e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tuya_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def entry_decrypt(hass: HomeAssistant, entry: ConfigEntry, init_entry_data):
c = cbc_key + cbc_iv
c_xor_entry = aes.xor_encrypt(c, access_id_entry)
# account info encrypted with AES-CBC
user_input_encrpt = aes.cbc_encrypt(cbc_key, cbc_iv, json.dumps(init_entry_data))
user_input_encrpt = aes.cbc_encrypt(cbc_key, cbc_iv, json.dumps(dict(init_entry_data)))
# udpate old account info
hass.config_entries.async_update_entry(
entry,
Expand Down

0 comments on commit 7cb9e86

Please sign in to comment.