esphome 2024.8.1__py3-none-any.whl → 2024.8.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.
@@ -186,7 +186,7 @@ async def datetime_date_set_to_code(config, action_id, template_arg, args):
186
186
 
187
187
  date_config = config[CONF_DATE]
188
188
  if cg.is_template(date_config):
189
- template_ = await cg.templatable(date_config, [], cg.ESPTime)
189
+ template_ = await cg.templatable(date_config, args, cg.ESPTime)
190
190
  cg.add(action_var.set_date(template_))
191
191
  else:
192
192
  date_struct = cg.StructInitializer(
@@ -217,7 +217,7 @@ async def datetime_time_set_to_code(config, action_id, template_arg, args):
217
217
 
218
218
  time_config = config[CONF_TIME]
219
219
  if cg.is_template(time_config):
220
- template_ = await cg.templatable(time_config, [], cg.ESPTime)
220
+ template_ = await cg.templatable(time_config, args, cg.ESPTime)
221
221
  cg.add(action_var.set_time(template_))
222
222
  else:
223
223
  time_struct = cg.StructInitializer(
@@ -248,7 +248,7 @@ async def datetime_datetime_set_to_code(config, action_id, template_arg, args):
248
248
 
249
249
  datetime_config = config[CONF_DATETIME]
250
250
  if cg.is_template(datetime_config):
251
- template_ = await cg.templatable(datetime_config, [], cg.ESPTime)
251
+ template_ = await cg.templatable(datetime_config, args, cg.ESPTime)
252
252
  cg.add(action_var.set_datetime(template_))
253
253
  else:
254
254
  datetime_struct = cg.StructInitializer(
@@ -472,13 +472,13 @@ void EthernetComponent::start_connect_() {
472
472
  if (err != ESP_ERR_ESP_NETIF_DHCP_ALREADY_STARTED) {
473
473
  ESPHL_ERROR_CHECK(err, "DHCPC start error");
474
474
  }
475
+ }
475
476
  #if USE_NETWORK_IPV6
476
- err = esp_netif_create_ip6_linklocal(this->eth_netif_);
477
- if (err != ESP_OK) {
478
- ESPHL_ERROR_CHECK(err, "Enable IPv6 link local failed");
479
- }
480
- #endif /* USE_NETWORK_IPV6 */
477
+ err = esp_netif_create_ip6_linklocal(this->eth_netif_);
478
+ if (err != ESP_OK) {
479
+ ESPHL_ERROR_CHECK(err, "Enable IPv6 link local failed");
481
480
  }
481
+ #endif /* USE_NETWORK_IPV6 */
482
482
 
483
483
  this->connect_begin_ = millis();
484
484
  this->status_set_warning();
esphome/const.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Constants used by esphome."""
2
2
 
3
- __version__ = "2024.8.1"
3
+ __version__ = "2024.8.3"
4
4
 
5
5
  ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
6
6
  VALID_SUBSTITUTIONS_CHARACTERS = (
esphome/storage_json.py CHANGED
@@ -48,6 +48,8 @@ class StorageJSON:
48
48
  firmware_bin_path: str,
49
49
  loaded_integrations: set[str],
50
50
  no_mdns: bool,
51
+ framework: str | None = None,
52
+ core_platform: str | None = None,
51
53
  ) -> None:
52
54
  # Version of the storage JSON schema
53
55
  assert storage_version is None or isinstance(storage_version, int)
@@ -78,6 +80,10 @@ class StorageJSON:
78
80
  self.loaded_integrations = loaded_integrations
79
81
  # Is mDNS disabled
80
82
  self.no_mdns = no_mdns
83
+ # The framework used to compile the firmware
84
+ self.framework = framework
85
+ # The core platform of this firmware. Like "esp32", "rp2040", "host" etc.
86
+ self.core_platform = core_platform
81
87
 
82
88
  def as_dict(self):
83
89
  return {
@@ -94,6 +100,8 @@ class StorageJSON:
94
100
  "firmware_bin_path": self.firmware_bin_path,
95
101
  "loaded_integrations": sorted(self.loaded_integrations),
96
102
  "no_mdns": self.no_mdns,
103
+ "framework": self.framework,
104
+ "core_platform": self.core_platform,
97
105
  }
98
106
 
99
107
  def to_json(self):
@@ -127,6 +135,8 @@ class StorageJSON:
127
135
  and CONF_DISABLED in esph.config[CONF_MDNS]
128
136
  and esph.config[CONF_MDNS][CONF_DISABLED] is True
129
137
  ),
138
+ framework=esph.target_framework,
139
+ core_platform=esph.target_platform,
130
140
  )
131
141
 
132
142
  @staticmethod
@@ -147,6 +157,8 @@ class StorageJSON:
147
157
  firmware_bin_path=None,
148
158
  loaded_integrations=set(),
149
159
  no_mdns=False,
160
+ framework=None,
161
+ core_platform=platform.lower(),
150
162
  )
151
163
 
152
164
  @staticmethod
@@ -168,6 +180,8 @@ class StorageJSON:
168
180
  firmware_bin_path = storage.get("firmware_bin_path")
169
181
  loaded_integrations = set(storage.get("loaded_integrations", []))
170
182
  no_mdns = storage.get("no_mdns", False)
183
+ framework = storage.get("framework")
184
+ core_platform = storage.get("core_platform")
171
185
  return StorageJSON(
172
186
  storage_version,
173
187
  name,
@@ -182,6 +196,8 @@ class StorageJSON:
182
196
  firmware_bin_path,
183
197
  loaded_integrations,
184
198
  no_mdns,
199
+ framework,
200
+ core_platform,
185
201
  )
186
202
 
187
203
  @staticmethod
esphome/writer.py CHANGED
@@ -9,6 +9,7 @@ from esphome.config import iter_component_configs, iter_components
9
9
  from esphome.const import (
10
10
  ENV_NOGITIGNORE,
11
11
  HEADER_FILE_EXTENSIONS,
12
+ PLATFORM_ESP32,
12
13
  SOURCE_FILE_EXTENSIONS,
13
14
  __version__,
14
15
  )
@@ -107,7 +108,10 @@ def storage_should_clean(old: StorageJSON, new: StorageJSON) -> bool:
107
108
  if old.build_path != new.build_path:
108
109
  return True
109
110
  if old.loaded_integrations != new.loaded_integrations:
110
- return True
111
+ if new.core_platform == PLATFORM_ESP32:
112
+ from esphome.components.esp32 import FRAMEWORK_ESP_IDF
113
+
114
+ return new.framework == FRAMEWORK_ESP_IDF
111
115
  return False
112
116
 
113
117
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: esphome
3
- Version: 2024.8.1
3
+ Version: 2024.8.3
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
@@ -5,7 +5,7 @@ esphome/codegen.py,sha256=GePHUM7xdXb_Pil59SHVsXg2F4VBPgkH-Fz2PDX8Z54,1873
5
5
  esphome/config.py,sha256=ArMupdqCpKqQm-vFWb85HueI88DAfYTjuhR6mA691DI,39614
6
6
  esphome/config_helpers.py,sha256=MKf_wzO35nn41FvigXE0iYKDslPgL2ruf8R-EPtTT2I,3256
7
7
  esphome/config_validation.py,sha256=Uck0GvA97sJ6sW25y0nqvOT2nsYIb6uZ_1sI-YBl4vc,65844
8
- esphome/const.py,sha256=kMsVH5LZ2U1X2Gum-jJOaohHDvKv9COgSjF70-3hERY,39408
8
+ esphome/const.py,sha256=enuP-OjQm0ZcxEz3_SClxWIrFGQOX2Ot_8AdSeoKpiE,39408
9
9
  esphome/coroutine.py,sha256=j_14z8dIIzIBeuNO30D4c1RJvMMt1xZFZ58Evd-EvJA,9344
10
10
  esphome/cpp_generator.py,sha256=lXPXHYUsFIvBSAoZ93mXYlGcXYg5L18nTtYGHE4_rr8,31203
11
11
  esphome/cpp_helpers.py,sha256=6C2vNbOIhZKi43xRVlk5hp9GfshfBn-rc5D_ZFUEYaE,4801
@@ -21,13 +21,13 @@ esphome/mqtt.py,sha256=8VA7W1sVIzfRrzYCAzfabG4TPT_ACo_Q3nMkltXZ0JA,8721
21
21
  esphome/pins.py,sha256=wO0d-2qn0fhT6WEN0H0AmYRSH90jW154hZT7RewMGYI,10713
22
22
  esphome/platformio_api.py,sha256=OEWhPZ2NQnTrZ3Vtm0IqW0E-xE7EyVhs5w3OtT2xfDY,11905
23
23
  esphome/schema_extractors.py,sha256=wQMtWFp2q4ZZ97Xv3xVhFUU6Ol3qjcyDtjowG4Shllo,2108
24
- esphome/storage_json.py,sha256=_zJW4qmugSpQzEMRPRA08PSdZDxdd1usn6WLUWUr4wM,9235
24
+ esphome/storage_json.py,sha256=dUvXwQx7Jmgpq0qgXmIEIIgTWhXIJm3dTZnOwK08Xck,9931
25
25
  esphome/types.py,sha256=xJaCRRyYuJiRo32mns9v-YeYB6w12NAT8vMSk9ZmJl8,430
26
26
  esphome/util.py,sha256=sKW1kNMRle3bOGrw9Rga32ZfSDXYMbQeQeVKxFEumJs,9329
27
27
  esphome/voluptuous_schema.py,sha256=rawKKTYh2kjXSGPaQnLS4qxpgoI9KwXPBQpgIxzPUzo,9316
28
28
  esphome/vscode.py,sha256=612-o7AVyoh1Fmg-ZXYxKVWUc5fcoumsnunpMv7MQuo,3251
29
29
  esphome/wizard.py,sha256=UyH7vRdfJIjQeN8EIgkpUsBReM0nD1mJ8mz0X-Ge9eE,15596
30
- esphome/writer.py,sha256=liOcFtHJ4oJOzRWAqOglO8bhFxqeQxEqX2wO_00W-ZM,11110
30
+ esphome/writer.py,sha256=f42mUzN6aOjpDGIzJJaKl3SJgga_iShL392LASvd_Ic,11280
31
31
  esphome/yaml_util.py,sha256=Yao1o29ftfEH-hdnc5zr-74-uhh0dfMPXj-J7xRCdtY,21659
32
32
  esphome/zeroconf.py,sha256=MF4_FderxU0mrtgMfnyA5SjYpGp72D36gYuRDYjXiAI,6804
33
33
  esphome/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -587,7 +587,7 @@ esphome/components/daly_bms/text_sensor.py,sha256=Dx-jMTI5BOpnmuAvQFrkVhx-kCwwLi
587
587
  esphome/components/dashboard_import/__init__.py,sha256=mVnz9bCrbAtnJssZ_2jJkzVutp6OXyajDEDIaVtUavI,5296
588
588
  esphome/components/dashboard_import/dashboard_import.cpp,sha256=G5aiH2f1mS_NZ0sgIMIVHFtw2rZMnEe84TT-Cn3kbR8,350
589
589
  esphome/components/dashboard_import/dashboard_import.h,sha256=rEtCkCQHpV7Wf240qqMREfQXE90s4zOdwQEYLG6xdCI,225
590
- esphome/components/datetime/__init__.py,sha256=NBlkoA0TpWM6-x4xFg1Zch50MOzGVqUCCnJFkjaQt5c,8551
590
+ esphome/components/datetime/__init__.py,sha256=UiZ1vmTtFvXZceaHnfIO2SKE66j7zNwH_7tKK4u9q7o,8557
591
591
  esphome/components/datetime/date_entity.cpp,sha256=UieYXahuBlffSwaMz2n1ce_bZvrXi14dIjhmsxkRcrY,3690
592
592
  esphome/components/datetime/date_entity.h,sha256=72vM34Ap7iUPoOtGMpudEQ_4489zY13UHhX3tzZopiY,2584
593
593
  esphome/components/datetime/datetime_base.h,sha256=ex7shrwo3gBS5Dc2s-t1rUe41HbVt1sYJJP6FAWIcJ0,1106
@@ -833,7 +833,7 @@ esphome/components/esphome/ota/ota_esphome.cpp,sha256=k2mo3SWZvQXLCZIeEIb_d6IV8D
833
833
  esphome/components/esphome/ota/ota_esphome.h,sha256=8j_EDYbc7UiALElGt6NN834RDfCxD8oLHkJbhyaXtV4,1118
834
834
  esphome/components/ethernet/__init__.py,sha256=XYUuJufukjh3isx8N6JY7EUwR56GBmyudhcd7bfWTzk,8821
835
835
  esphome/components/ethernet/esp_eth_phy_jl1101.c,sha256=vcT2EJ2S2i6q_vzmRyJY1pod5C05oMW3EpjFHF008L4,12572
836
- esphome/components/ethernet/ethernet_component.cpp,sha256=Ct5J1DnFYoY12YrPh57TjDHl3W3Cn5hU4oprXRU6hlA,22589
836
+ esphome/components/ethernet/ethernet_component.cpp,sha256=F4RCQOMWkYcKdjpMk2LFQU99eoIUycwtPkJzRaFGAqM,22581
837
837
  esphome/components/ethernet/ethernet_component.h,sha256=qOv56iV1EiPlKy7jsaAXT20gNOPaYyHGnrorgGXzvAo,4232
838
838
  esphome/components/ethernet_info/__init__.py,sha256=LoiZr_nRyJfR5w1ZWOFppOVTQRwlgmHU-boDala2fLA,33
839
839
  esphome/components/ethernet_info/ethernet_info_text_sensor.cpp,sha256=nfP7xeusvbzee1KHfuipELWvF1vmuk_2e4G_NlLeJ3M,564
@@ -3225,9 +3225,9 @@ esphome/dashboard/util/itertools.py,sha256=8eLrWEWmICLtXNxkKdYPQV0c_N4GEz8m9Npnb
3225
3225
  esphome/dashboard/util/password.py,sha256=cQz3b9B-ijTe7zS6BeCW0hc3pWv6JjC78jmnycYYAh8,321
3226
3226
  esphome/dashboard/util/subprocess.py,sha256=T8EW6dbU4LPd2DG1dRrdh8li71tt6J1isn411poMhkk,1022
3227
3227
  esphome/dashboard/util/text.py,sha256=ENDnfN4O0NdA3CKVJjQYabFbwbrsIhVKrAMQe53qYu4,534
3228
- esphome-2024.8.1.dist-info/LICENSE,sha256=HzEjkBInJe44L4WvAOPfhPJJDNj6YbnqFyvGWRzArGM,36664
3229
- esphome-2024.8.1.dist-info/METADATA,sha256=kGtMI4Ie63G7IXGUbkpkl5jMw9t1IEHuy0-zF9Rkvao,3263
3230
- esphome-2024.8.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
3231
- esphome-2024.8.1.dist-info/entry_points.txt,sha256=mIxVNuWtbYzeEcaWCl-AQ-97aBOWbnYBAK8nbF6P4M0,50
3232
- esphome-2024.8.1.dist-info/top_level.txt,sha256=0GSXEW3cnITpgG3qnsSMz0qoqJHAFyfw7Y8MVtEf1Yk,8
3233
- esphome-2024.8.1.dist-info/RECORD,,
3228
+ esphome-2024.8.3.dist-info/LICENSE,sha256=HzEjkBInJe44L4WvAOPfhPJJDNj6YbnqFyvGWRzArGM,36664
3229
+ esphome-2024.8.3.dist-info/METADATA,sha256=d-Sn5DzvaIkpRjzQAel9GFLoAHC9vKcFgDAsozPkB-I,3263
3230
+ esphome-2024.8.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
3231
+ esphome-2024.8.3.dist-info/entry_points.txt,sha256=mIxVNuWtbYzeEcaWCl-AQ-97aBOWbnYBAK8nbF6P4M0,50
3232
+ esphome-2024.8.3.dist-info/top_level.txt,sha256=0GSXEW3cnITpgG3qnsSMz0qoqJHAFyfw7Y8MVtEf1Yk,8
3233
+ esphome-2024.8.3.dist-info/RECORD,,