esphome 2025.6.2__py3-none-any.whl → 2025.6.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,8 +29,8 @@ async def async_run_logs(config: dict[str, Any], address: str) -> None:
29
29
  port: int = int(conf[CONF_PORT])
30
30
  password: str = conf[CONF_PASSWORD]
31
31
  noise_psk: str | None = None
32
- if CONF_ENCRYPTION in conf:
33
- noise_psk = conf[CONF_ENCRYPTION][CONF_KEY]
32
+ if (encryption := conf.get(CONF_ENCRYPTION)) and (key := encryption.get(CONF_KEY)):
33
+ noise_psk = key
34
34
  _LOGGER.info("Starting log output from %s using esphome API", address)
35
35
  cli = APIClient(
36
36
  address,
@@ -133,7 +133,6 @@ std::shared_ptr<HttpContainer> HttpRequestArduino::perform(std::string url, std:
133
133
  std::string header_value = container->client_.header(i).c_str();
134
134
  ESP_LOGD(TAG, "Received response header, name: %s, value: %s", header_name.c_str(), header_value.c_str());
135
135
  container->response_headers_[header_name].push_back(header_value);
136
- break;
137
136
  }
138
137
  }
139
138
 
@@ -42,7 +42,6 @@ esp_err_t HttpRequestIDF::http_event_handler(esp_http_client_event_t *evt) {
42
42
  const std::string header_value = evt->header_value;
43
43
  ESP_LOGD(TAG, "Received response header, name: %s, value: %s", header_name.c_str(), header_value.c_str());
44
44
  user_data->response_headers[header_name].push_back(header_value);
45
- break;
46
45
  }
47
46
  break;
48
47
  }
@@ -42,7 +42,7 @@ uart_config_t IDFUARTComponent::get_config_() {
42
42
  break;
43
43
  }
44
44
 
45
- uart_config_t uart_config;
45
+ uart_config_t uart_config{};
46
46
  uart_config.baud_rate = this->baud_rate_;
47
47
  uart_config.data_bits = data_bits;
48
48
  uart_config.parity = parity;
@@ -1734,12 +1734,15 @@ void WebServer::handle_event_request(AsyncWebServerRequest *request, const UrlMa
1734
1734
  request->send(404);
1735
1735
  }
1736
1736
 
1737
+ static std::string get_event_type(event::Event *event) { return event->last_event_type ? *event->last_event_type : ""; }
1738
+
1737
1739
  std::string WebServer::event_state_json_generator(WebServer *web_server, void *source) {
1738
- return web_server->event_json((event::Event *) (source), *(((event::Event *) (source))->last_event_type),
1739
- DETAIL_STATE);
1740
+ auto *event = static_cast<event::Event *>(source);
1741
+ return web_server->event_json(event, get_event_type(event), DETAIL_STATE);
1740
1742
  }
1741
1743
  std::string WebServer::event_all_json_generator(WebServer *web_server, void *source) {
1742
- return web_server->event_json((event::Event *) (source), *(((event::Event *) (source))->last_event_type), DETAIL_ALL);
1744
+ auto *event = static_cast<event::Event *>(source);
1745
+ return web_server->event_json(event, get_event_type(event), DETAIL_ALL);
1743
1746
  }
1744
1747
  std::string WebServer::event_json(event::Event *obj, const std::string &event_type, JsonDetail start_config) {
1745
1748
  return json::build_json([this, obj, event_type, start_config](JsonObject root) {
esphome/const.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Constants used by esphome."""
2
2
 
3
- __version__ = "2025.6.2"
3
+ __version__ = "2025.6.3"
4
4
 
5
5
  ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
6
6
  VALID_SUBSTITUTIONS_CHARACTERS = (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: esphome
3
- Version: 2025.6.2
3
+ Version: 2025.6.3
4
4
  Summary: ESPHome is a system to configure your microcontrollers by simple yet powerful configuration files and control them remotely through Home Automation systems.
5
5
  Author-email: The ESPHome Authors <esphome@openhomefoundation.org>
6
6
  License: MIT
@@ -5,7 +5,7 @@ esphome/codegen.py,sha256=GePHUM7xdXb_Pil59SHVsXg2F4VBPgkH-Fz2PDX8Z54,1873
5
5
  esphome/config.py,sha256=GsKqzNb4OBxA92eltdGYtP7e9fgtk80QsquhnUesb50,39948
6
6
  esphome/config_helpers.py,sha256=MKf_wzO35nn41FvigXE0iYKDslPgL2ruf8R-EPtTT2I,3256
7
7
  esphome/config_validation.py,sha256=Nt8rQegT0VRAcWumtI0rJ92kW0milKMv3b443ZUzcfY,63437
8
- esphome/const.py,sha256=591hDg5BeLmGO3rB4VTv6lc7Ii7_PthanUG1rGI0Vbw,41815
8
+ esphome/const.py,sha256=6B2lRhvu9Z1V6UVNYfWM59uzjwnWwmSU2HgtyPEoVvA,41815
9
9
  esphome/coroutine.py,sha256=HNBqqhaTbpvsOI19bTXltxJCMVtoeqZPe4qTf4CKkAc,9309
10
10
  esphome/cpp_generator.py,sha256=2MbyMVt9hg7cFD0X8885IiJfFNjdqkqjis3P-0oa5L0,31346
11
11
  esphome/cpp_helpers.py,sha256=6C2vNbOIhZKi43xRVlk5hp9GfshfBn-rc5D_ZFUEYaE,4801
@@ -194,7 +194,7 @@ esphome/components/api/api_pb2_service.h,sha256=CiUQWqbEIWSTN_Ku8RgA1UoVHUT2EWKj
194
194
  esphome/components/api/api_pb2_size.h,sha256=i9wFf675YrfJy9Em_vZLPJ9osRHRNkOb7DMd1LpK3YM,13430
195
195
  esphome/components/api/api_server.cpp,sha256=9TMUKMTJrML5-_1q9T28xsl-fEuZo9ITDPPhaNJglWY,14402
196
196
  esphome/components/api/api_server.h,sha256=ZWX0n80nf5TjEjvm-oVR5S4cutbfhcg8e8XNnZ2s_l4,5934
197
- esphome/components/api/client.py,sha256=1C85JrkIxtDqXGuxNQz7PMxZaSap1HOSuAFdE_qtfVM,1953
197
+ esphome/components/api/client.py,sha256=L6h7VbG5VzRXfdw6kHLwG1JScWRKBZG2LsfP0W5Oyks,1981
198
198
  esphome/components/api/custom_api_device.h,sha256=CyFBolpdvgrJ0vrHUwcHzUh5SV4Fh5296ro4w8e19MQ,7454
199
199
  esphome/components/api/homeassistant_service.h,sha256=_ie-fI8yZ5hJfssBwFcXZz4pLseqTdtJDZ7AQekFLpI,2814
200
200
  esphome/components/api/list_entities.cpp,sha256=yRhKcSw6U1Ah1znEBd2nNwWLZyyttFniUGHMRW0M0Sw,4092
@@ -1215,11 +1215,11 @@ esphome/components/hte501/sensor.py,sha256=Tt-tt4Utyh1FBuNtGw55rts74JVkTVH_vTA9O
1215
1215
  esphome/components/http_request/__init__.py,sha256=4ekHE33G0CsnSVuPvnmAdbBpg6obOTIPHSuvDTWzgEg,11888
1216
1216
  esphome/components/http_request/http_request.cpp,sha256=vnoIY9A99-chUUFCcOQNMmStwsufTE-vx0oKtZIOWbs,1538
1217
1217
  esphome/components/http_request/http_request.h,sha256=MBBImEOgcqqQ45AmeAUaJgnvR3ZaKdiZzmCoqo1yeAg,10927
1218
- esphome/components/http_request/http_request_arduino.cpp,sha256=GdMh4oeAPBUXy3zpdCVxwbWDygc4RPVssm9BIz0oBZA,6152
1218
+ esphome/components/http_request/http_request_arduino.cpp,sha256=fs3249Nj5lgTgMn8vw7Is0DDR_GjN4ts7B7dQe3BX4M,6139
1219
1219
  esphome/components/http_request/http_request_arduino.h,sha256=MefaByIVi-z9oWrEkM0665_qtJUMSzqcN5dQLsw9MPw,966
1220
1220
  esphome/components/http_request/http_request_host.cpp,sha256=gslTKPkpey2C-WmaJT3T5buybfrYjWuR9-80-FLUVOw,5299
1221
1221
  esphome/components/http_request/http_request_host.h,sha256=m9FKc4TnFSqxvAYHW5fXGTXIZM5BYrd85UsAiKEFON4,916
1222
- esphome/components/http_request/http_request_idf.cpp,sha256=0zgUF1YpinAIllIUtni_lu2g_oYrqzj3lDlryYK7cu0,7648
1222
+ esphome/components/http_request/http_request_idf.cpp,sha256=4aNLuv6t9eufVqbi9IqFdoW6q2ccOKLjbXN0yM9qUO8,7633
1223
1223
  esphome/components/http_request/http_request_idf.h,sha256=mSwxYFbkN1pg8bba_VfZPOpj6mGzxggmxWYTSbaJjec,1611
1224
1224
  esphome/components/http_request/httplib.h,sha256=9uWxMuI_jKC9ioSykx9wL61Q7cyYOg4JEWjaY95m7Ak,330270
1225
1225
  esphome/components/http_request/ota/__init__.py,sha256=03UdNMAPcIRj0NNEGDwuOOswpNZDjZyfzaS9LEYE1_o,3182
@@ -3217,7 +3217,7 @@ esphome/components/uart/uart_component_esp32_arduino.cpp,sha256=M1ORPmhv1lrNsC4a
3217
3217
  esphome/components/uart/uart_component_esp32_arduino.h,sha256=oXJD5P-4hk2xD1Hmz06U8egAKwiyknspaeLtnd7BBfw,1535
3218
3218
  esphome/components/uart/uart_component_esp8266.cpp,sha256=7zDOXn4thT3HhMezH3AQaRumLWAYLQEOMmQzgPezwX4,10828
3219
3219
  esphome/components/uart/uart_component_esp8266.h,sha256=5KMN-fUHCDbS9ppn-PKziVknoBLZqy-tJx9HGXh_qOE,2428
3220
- esphome/components/uart/uart_component_esp_idf.cpp,sha256=sy8ak7UYBeQLCtaBTdEj0FwZAr6nR8zL_L8_bARv59c,7410
3220
+ esphome/components/uart/uart_component_esp_idf.cpp,sha256=sCEDm4T_44neLFXTT-Ri2QUKFSzUQLkchhCizsu2dIs,7412
3221
3221
  esphome/components/uart/uart_component_esp_idf.h,sha256=p3L9pLNlT_qfa7aQpKJ-mhC7Kmj04yR3eOw3tNfpQCA,1482
3222
3222
  esphome/components/uart/uart_component_host.cpp,sha256=s1qnqA8azZR2lLGIXRVIh22Tf02dKIOw-nDuKVZ4qns,7165
3223
3223
  esphome/components/uart/uart_component_host.h,sha256=3U7oLyjyWW0sOuwSx1puyeWR-w_a7ukhE-3obxCyHWU,992
@@ -3345,7 +3345,7 @@ esphome/components/web_server/list_entities.cpp,sha256=yQ3skDSDFnnKsEpLdkyjzySmX
3345
3345
  esphome/components/web_server/list_entities.h,sha256=afeebykHFeV1rLpywOSZqaPqfL-K-MkLByfJWrkrb-M,2561
3346
3346
  esphome/components/web_server/server_index_v2.h,sha256=cVFZzhvmwcUzN815XwYnx2L9zf5lH-MAZjolRearXdw,74968
3347
3347
  esphome/components/web_server/server_index_v3.h,sha256=5SZfSHDG4xAyXNBxUqs8-jSVwocgfRbNbTSMwzVl1io,476640
3348
- esphome/components/web_server/web_server.cpp,sha256=31w6WIuJe3DKQg8hSjIgYHlcrcW1tIbL7JR-4suHEIk,79540
3348
+ esphome/components/web_server/web_server.cpp,sha256=bBXkmrdzZnI8l-Ciy2OlvXxJxJYFWMws5kY3boW9gBI,79644
3349
3349
  esphome/components/web_server/web_server.h,sha256=tWYtkxG4Kxc35v8k290FpF1j2rRGrH3LUeCZbcAjKEw,21104
3350
3350
  esphome/components/web_server/web_server_v1.cpp,sha256=Ri32qveJXRPxCpgWz-0Eo3it2yIdVWb5NkRVzokQJLw,7213
3351
3351
  esphome/components/web_server_base/__init__.py,sha256=LoNl37e466BYz6tST9mhSanB2vcPl1LSjKaulZZYFTE,1122
@@ -3596,9 +3596,9 @@ esphome/dashboard/util/itertools.py,sha256=8eLrWEWmICLtXNxkKdYPQV0c_N4GEz8m9Npnb
3596
3596
  esphome/dashboard/util/password.py,sha256=cQz3b9B-ijTe7zS6BeCW0hc3pWv6JjC78jmnycYYAh8,321
3597
3597
  esphome/dashboard/util/subprocess.py,sha256=T8EW6dbU4LPd2DG1dRrdh8li71tt6J1isn411poMhkk,1022
3598
3598
  esphome/dashboard/util/text.py,sha256=ENDnfN4O0NdA3CKVJjQYabFbwbrsIhVKrAMQe53qYu4,534
3599
- esphome-2025.6.2.dist-info/licenses/LICENSE,sha256=HzEjkBInJe44L4WvAOPfhPJJDNj6YbnqFyvGWRzArGM,36664
3600
- esphome-2025.6.2.dist-info/METADATA,sha256=iVaivl7IcZGOyoHhVWYTLTPoN818SPv0BO_nInQymVA,3678
3601
- esphome-2025.6.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
3602
- esphome-2025.6.2.dist-info/entry_points.txt,sha256=mIxVNuWtbYzeEcaWCl-AQ-97aBOWbnYBAK8nbF6P4M0,50
3603
- esphome-2025.6.2.dist-info/top_level.txt,sha256=0GSXEW3cnITpgG3qnsSMz0qoqJHAFyfw7Y8MVtEf1Yk,8
3604
- esphome-2025.6.2.dist-info/RECORD,,
3599
+ esphome-2025.6.3.dist-info/licenses/LICENSE,sha256=HzEjkBInJe44L4WvAOPfhPJJDNj6YbnqFyvGWRzArGM,36664
3600
+ esphome-2025.6.3.dist-info/METADATA,sha256=ksIAZBMPsdLEc6UeDTwWzQEd4e8HqflkeH-uPbBsQbY,3678
3601
+ esphome-2025.6.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
3602
+ esphome-2025.6.3.dist-info/entry_points.txt,sha256=mIxVNuWtbYzeEcaWCl-AQ-97aBOWbnYBAK8nbF6P4M0,50
3603
+ esphome-2025.6.3.dist-info/top_level.txt,sha256=0GSXEW3cnITpgG3qnsSMz0qoqJHAFyfw7Y8MVtEf1Yk,8
3604
+ esphome-2025.6.3.dist-info/RECORD,,