浏览代码

fix(services): use consistent naming of parameter

Jason Rumney 3 月之前
父节点
当前提交
0636206f59
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      custom_components/tuya_local/services.py

+ 1 - 1
custom_components/tuya_local/services.py

@@ -20,7 +20,7 @@ from .remote import TuyaLocalRemote
 
 
 REMOTE_SEND_IR_COMMAND_SCHEMA = {
 REMOTE_SEND_IR_COMMAND_SCHEMA = {
     vol.Required("emitter_entity_id"): cv.entity_id,
     vol.Required("emitter_entity_id"): cv.entity_id,
-    vol.Required("code"): str,
+    vol.Required("command"): str,
     vol.Optional("device"): str,
     vol.Optional("device"): str,
 }
 }