esphome 2024.7.0b4__py3-none-any.whl → 2024.7.1__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.
esphome/__main__.py CHANGED
@@ -695,7 +695,8 @@ def command_rename(args, config):
695
695
  os.remove(new_path)
696
696
  return 1
697
697
 
698
- os.remove(CORE.config_path)
698
+ if CORE.config_path != new_path:
699
+ os.remove(CORE.config_path)
699
700
 
700
701
  print(color(Fore.BOLD_GREEN, "SUCCESS"))
701
702
  print()
@@ -8,6 +8,7 @@ from esphome.const import (
8
8
  CONF_PROTOCOL,
9
9
  CONF_VISUAL,
10
10
  )
11
+ from esphome.core import CORE
11
12
 
12
13
  CODEOWNERS = ["@rob-deutsch"]
13
14
 
@@ -127,3 +128,5 @@ def to_code(config):
127
128
  cg.add(var.set_min_temperature(config[CONF_MIN_TEMPERATURE]))
128
129
 
129
130
  cg.add_library("tonia/HeatpumpIR", "1.0.27")
131
+ if CORE.is_libretiny:
132
+ CORE.add_platformio_option("lib_ignore", "IRremoteESP8266")
@@ -52,6 +52,7 @@ std::shared_ptr<HttpContainer> HttpRequestIDF::start(std::string url, std::strin
52
52
  config.timeout_ms = this->timeout_;
53
53
  config.disable_auto_redirect = !this->follow_redirects_;
54
54
  config.max_redirection_count = this->redirect_limit_;
55
+ config.auth_type = HTTP_AUTH_TYPE_BASIC;
55
56
  #if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE
56
57
  if (secure) {
57
58
  config.crt_bundle_attach = esp_crt_bundle_attach;
@@ -174,7 +174,8 @@ size_t I2SAudioMicrophone::read(int16_t *buf, size_t len) {
174
174
  size_t samples_read = bytes_read / sizeof(int32_t);
175
175
  samples.resize(samples_read);
176
176
  for (size_t i = 0; i < samples_read; i++) {
177
- samples[i] = reinterpret_cast<int32_t *>(buf)[i] >> 16;
177
+ int32_t temp = reinterpret_cast<int32_t *>(buf)[i] >> 14;
178
+ samples[i] = clamp<int16_t>(temp, INT16_MIN, INT16_MAX);
178
179
  }
179
180
  memcpy(buf, samples.data(), samples_read * sizeof(int16_t));
180
181
  return samples_read * sizeof(int16_t);
@@ -27,7 +27,7 @@ bool SmlFile::setup_node(SmlNode *node) {
27
27
  uint8_t parse_length = length;
28
28
  if (has_extended_length) {
29
29
  length = (length << 4) + (this->buffer_[this->pos_ + 1] & 0x0f);
30
- parse_length = length - 1;
30
+ parse_length = length;
31
31
  this->pos_ += 1;
32
32
  }
33
33
 
@@ -37,7 +37,9 @@ bool SmlFile::setup_node(SmlNode *node) {
37
37
  node->type = type & 0x07;
38
38
  node->nodes.clear();
39
39
  node->value_bytes.clear();
40
- if (this->buffer_[this->pos_] == 0x00) { // end of message
40
+
41
+ // if the list is a has_extended_length list with e.g. 16 elements this is a 0x00 byte but not the end of message
42
+ if (!has_extended_length && this->buffer_[this->pos_] == 0x00) { // end of message
41
43
  this->pos_ += 1;
42
44
  } else if (is_list) { // list
43
45
  this->pos_ += 1;
esphome/const.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Constants used by esphome."""
2
2
 
3
- __version__ = "2024.7.0b4"
3
+ __version__ = "2024.7.1"
4
4
 
5
5
  ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
6
6
  VALID_SUBSTITUTIONS_CHARACTERS = (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: esphome
3
- Version: 2024.7.0b4
3
+ Version: 2024.7.1
4
4
  Summary: Make creating custom firmwares for ESP32/ESP8266 super easy.
5
5
  Author-email: The ESPHome Authors <esphome@nabucasa.com>
6
6
  License: MIT
@@ -1,11 +1,11 @@
1
1
  esphome/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- esphome/__main__.py,sha256=q5bitlzrHuGTKl-wPanxoq2W-__D6v9FR7igo91fWj0,33402
2
+ esphome/__main__.py,sha256=DFZm9R3tlYSY-LpdxEtdlN7iAH7KCym8iy3TbfHgdjQ,33443
3
3
  esphome/automation.py,sha256=wnD7iJvGPSz7q8AJo2o5KglnN_uuhKcWOpYp95Vg9Oc,14507
4
4
  esphome/codegen.py,sha256=LCJVpAwy1L9DTBsIvbgAbHj1TOXUSPgBoN--aio0gBk,1855
5
5
  esphome/config.py,sha256=wztK2UmO7-hc6HFDAi6YWtrPVy5mH0diKuqpsWp4-XA,39616
6
6
  esphome/config_helpers.py,sha256=MKf_wzO35nn41FvigXE0iYKDslPgL2ruf8R-EPtTT2I,3256
7
7
  esphome/config_validation.py,sha256=G79LGVIh5BdpGkzuehkm7Db_llpbC2of4dKqZEpHc3A,64838
8
- esphome/const.py,sha256=SUZvcz_XkgCQ58OeMcC8KYw3HPgVbgho5Btk125vLtA,38954
8
+ esphome/const.py,sha256=k4OE5Ih6zGTEbXW-8Yjs0TIgZ9NkZcfzahJA0NsH448,38952
9
9
  esphome/coroutine.py,sha256=IG2kC92OrenyiRm7Qo9uC-4qU4b4-Lmj0TkMIjRG2RY,9344
10
10
  esphome/cpp_generator.py,sha256=hW2EfubUiildhKXZIdV8Dr3Q9TM5oHybFwiTo5-vEUE,31203
11
11
  esphome/cpp_helpers.py,sha256=KadRBBoo4QRT-VwdWFtvxv_FYjqhZTkBhfMX-JhEMwg,4803
@@ -993,7 +993,7 @@ esphome/components/he60r/cover.py,sha256=ES3bNeF_3bOMuZuGyHbA0kpMTHtvJ1rjGl00d8Y
993
993
  esphome/components/he60r/he60r.cpp,sha256=yR8FiHWRr4ZwAZaUuQgI6n7quPY5FyejpNiX5Yc_6Wg,8710
994
994
  esphome/components/he60r/he60r.h,sha256=9PXOGaUNx8Zfw_ewHAuOpCkgljLjiGvK1bFwBeo5Abo,1449
995
995
  esphome/components/heatpumpir/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
996
- esphome/components/heatpumpir/climate.py,sha256=_bFEV5jvbjvvyLsdp_lch7v4rETmiomoWg-0oo5K4k0,5434
996
+ esphome/components/heatpumpir/climate.py,sha256=zR9RKa-zV1z9cRiSLxLMriZYT9FND6s_xlUAdo2fxAg,5558
997
997
  esphome/components/heatpumpir/heatpumpir.cpp,sha256=EWcDXuqMULSgdCMRg88ONAwv5ef2KcBhBhz6tHLMxxs,9850
998
998
  esphome/components/heatpumpir/heatpumpir.h,sha256=aBKYfdWD9_6_1-xCDwVv0UFP6FBDpID4Fk2EhoplGFA,3756
999
999
  esphome/components/heatpumpir/ir_sender_esphome.cpp,sha256=MOAYkculr1fFhFIa3_12yLZFblDcWBlvFyr5cQtMYIQ,734
@@ -1070,7 +1070,7 @@ esphome/components/http_request/http_request.cpp,sha256=UFpMPffAuE2enh8iBvZzV3ED
1070
1070
  esphome/components/http_request/http_request.h,sha256=-QVBxaH5iOFuzuvdmBDrjL81YM63mv3zILS4m8E4Oa4,6758
1071
1071
  esphome/components/http_request/http_request_arduino.cpp,sha256=HyePONw2B2095vN-f9WOFkuWkhZSYLYrcwYI5tfzakk,5362
1072
1072
  esphome/components/http_request/http_request_arduino.h,sha256=iaOY5aKpQJREygOoyBB8Nsozp4cfETDt-G6Hgu_pkm0,871
1073
- esphome/components/http_request/http_request_idf.cpp,sha256=7WJQ4woRdTGzeiaI9Aa2Xu0aDX5EAxydE0cbKbGLifE,4382
1073
+ esphome/components/http_request/http_request_idf.cpp,sha256=k9lTzJh2X7DoP2OOyTvtQTyIwJT780sXVck-0u9rvLE,4425
1074
1074
  esphome/components/http_request/http_request_idf.h,sha256=RmtzXsXsi8M66Lnf6eHbdEK5PIwALlvHyNXVz4skeGQ,774
1075
1075
  esphome/components/http_request/watchdog.cpp,sha256=vrRWycQv1a4iOxYaR2Ld4UJdnYgp-s2E1V6kLjqoK_w,1687
1076
1076
  esphome/components/http_request/watchdog.h,sha256=45UrEdgj6KmB7lLPIK4-_BdpwZy-aDki3tMWrQn-hF8,454
@@ -1117,7 +1117,7 @@ esphome/components/i2s_audio/media_player/__init__.py,sha256=jlk-y5UGX8fc4dsXda2
1117
1117
  esphome/components/i2s_audio/media_player/i2s_audio_media_player.cpp,sha256=OlvkjzYSdaxIjJiQF-BbjThoY91_rvGJ4woRjyB9mwY,7538
1118
1118
  esphome/components/i2s_audio/media_player/i2s_audio_media_player.h,sha256=iUx93Xwi7DgWtyNaHIkJ7FJ2kUK6-fdeTs87opqTcRo,2062
1119
1119
  esphome/components/i2s_audio/microphone/__init__.py,sha256=uPZ7e0pGxbNklDqIoqLcTmvhnSTcQ16q3pSDFIgEy70,3982
1120
- esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp,sha256=LfcloU1ws1AGcm5FCyHCdWnLRunVqJB3iGv_RfYHaOE,6122
1120
+ esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp,sha256=Tt16Tu_KsGPBOJPjug0WX4A-QZhAFLl7s-Kgno81Vn0,6187
1121
1121
  esphome/components/i2s_audio/microphone/i2s_audio_microphone.h,sha256=V0QfxCYBu9DUoO1Ui0O7zB2iP-9P_wduN3Cf2b27AWI,1586
1122
1122
  esphome/components/i2s_audio/speaker/__init__.py,sha256=0nzQXnjQaYv7YklVp8Landvz57x-bhrLJuta92LiDXk,2724
1123
1123
  esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp,sha256=C4ZN8HTWiwGtOmL1y3ICnoCH1-iLaB2dPKAz3g26wts,8187
@@ -2344,7 +2344,7 @@ esphome/components/sml/automation.h,sha256=lY2a8F41GCJB03oPWj4fBJ_3VlXgSc7HKwkVz
2344
2344
  esphome/components/sml/constants.h,sha256=bBhl2KSbp7c44Ah4qcVxGwVGMq5na8JgSLwu-Zk-uUE,639
2345
2345
  esphome/components/sml/sml.cpp,sha256=Th5Q5VbkGt8RsNOCWFDRFFmTbTZj0NH6JRH1A2tSlNE,4209
2346
2346
  esphome/components/sml/sml.h,sha256=UWA0WZEwiMk2NWgCm9nUCQyJa6DUSxJwhV_W9EE3l1E,1326
2347
- esphome/components/sml/sml_parser.cpp,sha256=0m1K0dK2UB3anQzb_F-OHbWCA7qFkgIlSLuSAoSY4Wc,3984
2347
+ esphome/components/sml/sml_parser.cpp,sha256=mvZkfBALgSO9KKOPIKa2ffWZfrhgAe_ssuQSr6vmqD4,4121
2348
2348
  esphome/components/sml/sml_parser.h,sha256=9HlTT3dcbn8jnnvwIARwzBC7wasi2UUZrCj6tTXN--E,955
2349
2349
  esphome/components/sml/sensor/__init__.py,sha256=Moj__7kqYwuKSh27dxoWpJpDswVSuwx8PAPTIdt5adM,910
2350
2350
  esphome/components/sml/sensor/sml_sensor.cpp,sha256=onWh6gi584Qy8TaYgnRi5K4nMUkS39P8_liCTTKW5JM,1106
@@ -3119,9 +3119,9 @@ esphome/dashboard/util/itertools.py,sha256=8eLrWEWmICLtXNxkKdYPQV0c_N4GEz8m9Npnb
3119
3119
  esphome/dashboard/util/password.py,sha256=cQz3b9B-ijTe7zS6BeCW0hc3pWv6JjC78jmnycYYAh8,321
3120
3120
  esphome/dashboard/util/subprocess.py,sha256=T8EW6dbU4LPd2DG1dRrdh8li71tt6J1isn411poMhkk,1022
3121
3121
  esphome/dashboard/util/text.py,sha256=ENDnfN4O0NdA3CKVJjQYabFbwbrsIhVKrAMQe53qYu4,534
3122
- esphome-2024.7.0b4.dist-info/LICENSE,sha256=HzEjkBInJe44L4WvAOPfhPJJDNj6YbnqFyvGWRzArGM,36664
3123
- esphome-2024.7.0b4.dist-info/METADATA,sha256=HBcaZkRTFrujwOsQdf8dccMWstRkQ4sQt-QIx91G-F4,3265
3124
- esphome-2024.7.0b4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
3125
- esphome-2024.7.0b4.dist-info/entry_points.txt,sha256=mIxVNuWtbYzeEcaWCl-AQ-97aBOWbnYBAK8nbF6P4M0,50
3126
- esphome-2024.7.0b4.dist-info/top_level.txt,sha256=0GSXEW3cnITpgG3qnsSMz0qoqJHAFyfw7Y8MVtEf1Yk,8
3127
- esphome-2024.7.0b4.dist-info/RECORD,,
3122
+ esphome-2024.7.1.dist-info/LICENSE,sha256=HzEjkBInJe44L4WvAOPfhPJJDNj6YbnqFyvGWRzArGM,36664
3123
+ esphome-2024.7.1.dist-info/METADATA,sha256=8Br6BjjqmWwQKeEF-qx0gIJ1xDbQPyV7B9kNNaALKu0,3263
3124
+ esphome-2024.7.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
3125
+ esphome-2024.7.1.dist-info/entry_points.txt,sha256=mIxVNuWtbYzeEcaWCl-AQ-97aBOWbnYBAK8nbF6P4M0,50
3126
+ esphome-2024.7.1.dist-info/top_level.txt,sha256=0GSXEW3cnITpgG3qnsSMz0qoqJHAFyfw7Y8MVtEf1Yk,8
3127
+ esphome-2024.7.1.dist-info/RECORD,,