Просмотр исходного кода

fix(services): Drop context

It isn't clear what should be passed here as the documentation is lacking
any details, but the context from service call is being rejected.
Jason Rumney 4 недель назад
Родитель
Сommit
1f6b310b9b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      custom_components/tuya_local/services.py

+ 1 - 1
custom_components/tuya_local/services.py

@@ -70,7 +70,7 @@ async def async_handle_send_ir_command(entity, call: ServiceCall):
             _LOGGER.error("RF emitters are not yet supported by this service")
             continue
         await infrared.async_send_command(
-            entity.hass, emitter, TuyaRemoteCommand(code=code), context=call.context
+            entity.hass, emitter, TuyaRemoteCommand(code=code)
         )
         at_least_one_sent = True