feat: update ota config to new format

This commit is contained in:
neri 2024-06-29 00:38:18 +02:00
parent 2eff076d5b
commit d752d9121d
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,8 @@ api:
key: $api_enckey key: $api_enckey
ota: ota:
password: $ota_password - platform: esphome
password: $ota_password
wifi: wifi:
ssid: $wifi_ssid ssid: $wifi_ssid
@ -65,6 +66,7 @@ http_request:
useragent: esphome useragent: esphome
timeout: 2s timeout: 2s
id: http_request_data id: http_request_data
verify_ssl: false
globals: globals:
- id: my_token - id: my_token
@ -97,7 +99,6 @@ rc522_spi:
json: json:
role_id: $vault_role_id role_id: $vault_role_id
secret_id: $vault_secret_id secret_id: $vault_secret_id
verify_ssl: false
on_response: on_response:
# fetch token from response, store into my_token # fetch token from response, store into my_token
then: then:
@ -111,7 +112,6 @@ rc522_spi:
return ((std::string) "https://vault.ctdo.de/v1/maschinenlock/" + id(my_tag)); return ((std::string) "https://vault.ctdo.de/v1/maschinenlock/" + id(my_tag));
headers: headers:
X-Vault-Token: !lambda return id(my_token).c_str(); X-Vault-Token: !lambda return id(my_token).c_str();
verify_ssl: false
on_response: on_response:
then: then:
- if: - if: