@@ -49,19 +49,41 @@ def hk_setup_code(value):
4949cv .only_with_esp_idf )
5050
5151async def to_code (config ):
52- # cg.add_define("CONFIG_ESP_MFI_DEBUG_ENABLE")
5352 add_idf_component (
54- name = "idf-extra-components" ,
55- repo = "https://github.com/espressif/idf-extra-components.git" ,
56- ref = "master" ,
57- components = ["libsodium" , "jsmn" , "json_parser" , "json_generator" ],
58- submodules = ["libsodium/libsodium" ]
53+ name = "esp_hap_core" ,
54+ repo = "https://github.com/rednblkx/esp-homekit-sdk" ,
55+ ref = "upstream" ,
56+ path = "components/homekit/esp_hap_core"
57+ )
58+ add_idf_component (
59+ name = "esp_hap_apple_profiles" ,
60+ repo = "https://github.com/rednblkx/esp-homekit-sdk" ,
61+ ref = "upstream" ,
62+ path = "components/homekit/esp_hap_apple_profiles"
63+ )
64+ add_idf_component (
65+ name = "esp_hap_extras" ,
66+ repo = "https://github.com/rednblkx/esp-homekit-sdk" ,
67+ ref = "upstream" ,
68+ path = "components/homekit/esp_hap_extras"
69+ )
70+ add_idf_component (
71+ name = "esp_hap_platform" ,
72+ repo = "https://github.com/rednblkx/esp-homekit-sdk" ,
73+ ref = "upstream" ,
74+ path = "components/homekit/esp_hap_platform"
75+ )
76+ add_idf_component (
77+ name = "hkdf-sha" ,
78+ repo = "https://github.com/rednblkx/esp-homekit-sdk" ,
79+ ref = "upstream" ,
80+ path = "components/homekit/hkdf-sha"
5981 )
6082 add_idf_component (
61- name = "esp-homekit-sdk " ,
83+ name = "mu_srp " ,
6284 repo = "https://github.com/rednblkx/esp-homekit-sdk" ,
63- ref = "master " ,
64- components = [ "esp_hap_core" , "esp_hap_apple_profiles" , "esp_hap_extras" , "esp_hap_platform" , "hkdf-sha" , " mu_srp"],
85+ ref = "upstream " ,
86+ path = "components/homekit/ mu_srp"
6587 )
6688 info_temp = []
6789 if "meta" in config :
@@ -70,4 +92,4 @@ async def to_code(config):
7092 var = cg .new_Pvariable (config [CONF_ID ], config ["setup_code" ], config ["setup_id" ], info_temp )
7193 if CONF_PORT in config :
7294 add_idf_sdkconfig_option ("CONFIG_HAP_HTTP_SERVER_PORT" , config [CONF_PORT ])
73- await cg .register_component (var , config )
95+ await cg .register_component (var , config )
0 commit comments