esphome 2024.6.0b1__py3-none-any.whl → 2024.6.0b2__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
@@ -488,6 +488,15 @@ def command_run(args, config):
488
488
  if exit_code != 0:
489
489
  return exit_code
490
490
  _LOGGER.info("Successfully compiled program.")
491
+ if CORE.is_host:
492
+ from esphome.platformio_api import get_idedata
493
+
494
+ idedata = get_idedata(config)
495
+ if idedata is None:
496
+ return 1
497
+ program_path = idedata.raw["prog_path"]
498
+ return run_external_process(program_path)
499
+
491
500
  port = choose_upload_log_host(
492
501
  default=args.device,
493
502
  check_default=None,
@@ -8,6 +8,7 @@ from esphome.const import (
8
8
  CONF_INC_PIN,
9
9
  CONF_UD_PIN,
10
10
  CONF_INITIAL_VALUE,
11
+ CONF_STEP_DELAY,
11
12
  )
12
13
 
13
14
  CODEOWNERS = ["@EtienneMD"]
@@ -26,6 +27,7 @@ CONFIG_SCHEMA = cv.All(
26
27
  cv.Optional(CONF_INITIAL_VALUE, default=1.0): cv.float_range(
27
28
  min=0.01, max=1.0
28
29
  ),
30
+ cv.Optional(CONF_STEP_DELAY, default=1): cv.int_range(min=1, max=100),
29
31
  }
30
32
  )
31
33
  )
@@ -44,3 +46,4 @@ async def to_code(config):
44
46
  cg.add(var.set_ud_pin(ud_pin))
45
47
 
46
48
  cg.add(var.set_initial_value(config[CONF_INITIAL_VALUE]))
49
+ cg.add(var.set_step_delay(config[CONF_STEP_DELAY]))
@@ -22,9 +22,9 @@ void X9cOutput::trim_value(int change_amount) {
22
22
 
23
23
  for (int i = 0; i < abs(change_amount); i++) { // Move wiper
24
24
  this->inc_pin_->digital_write(true);
25
- delayMicroseconds(1);
25
+ delayMicroseconds(this->step_delay_);
26
26
  this->inc_pin_->digital_write(false);
27
- delayMicroseconds(1);
27
+ delayMicroseconds(this->step_delay_);
28
28
  }
29
29
 
30
30
  delayMicroseconds(100); // Let value settle
@@ -69,6 +69,7 @@ void X9cOutput::dump_config() {
69
69
  LOG_PIN(" Increment Pin: ", this->inc_pin_);
70
70
  LOG_PIN(" Up/Down Pin: ", this->ud_pin_);
71
71
  ESP_LOGCONFIG(TAG, " Initial Value: %f", this->initial_value_);
72
+ ESP_LOGCONFIG(TAG, " Step Delay: %d", this->step_delay_);
72
73
  LOG_FLOAT_OUTPUT(this);
73
74
  }
74
75
 
@@ -13,6 +13,7 @@ class X9cOutput : public output::FloatOutput, public Component {
13
13
  void set_inc_pin(InternalGPIOPin *pin) { inc_pin_ = pin; }
14
14
  void set_ud_pin(InternalGPIOPin *pin) { ud_pin_ = pin; }
15
15
  void set_initial_value(float initial_value) { initial_value_ = initial_value; }
16
+ void set_step_delay(int step_delay) { step_delay_ = step_delay; }
16
17
 
17
18
  void setup() override;
18
19
  void dump_config() override;
@@ -26,6 +27,7 @@ class X9cOutput : public output::FloatOutput, public Component {
26
27
  InternalGPIOPin *ud_pin_;
27
28
  float initial_value_;
28
29
  float pot_value_;
30
+ int step_delay_;
29
31
  };
30
32
 
31
33
  } // namespace x9c
esphome/const.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Constants used by esphome."""
2
2
 
3
- __version__ = "2024.6.0b1"
3
+ __version__ = "2024.6.0b2"
4
4
 
5
5
  ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
6
6
  VALID_SUBSTITUTIONS_CHARACTERS = (
@@ -784,6 +784,7 @@ CONF_STATIC_IP = "static_ip"
784
784
  CONF_STATUS = "status"
785
785
  CONF_STB_PIN = "stb_pin"
786
786
  CONF_STEP = "step"
787
+ CONF_STEP_DELAY = "step_delay"
787
788
  CONF_STEP_MODE = "step_mode"
788
789
  CONF_STEP_PIN = "step_pin"
789
790
  CONF_STOP = "stop"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: esphome
3
- Version: 2024.6.0b1
3
+ Version: 2024.6.0b2
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
@@ -36,7 +36,7 @@ Requires-Dist: pyserial ==3.5
36
36
  Requires-Dist: platformio ==6.1.15
37
37
  Requires-Dist: esptool ==4.7.0
38
38
  Requires-Dist: click ==8.1.7
39
- Requires-Dist: esphome-dashboard ==20240429.1
39
+ Requires-Dist: esphome-dashboard ==20240613.0
40
40
  Requires-Dist: aioesphomeapi ==24.3.0
41
41
  Requires-Dist: zeroconf ==0.132.2
42
42
  Requires-Dist: python-magic ==0.4.27
@@ -1,11 +1,11 @@
1
1
  esphome/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- esphome/__main__.py,sha256=CphKafN3doopLcVjigT9Mx6ALx8DTyyR5_Ef-d_ps20,33139
2
+ esphome/__main__.py,sha256=q5bitlzrHuGTKl-wPanxoq2W-__D6v9FR7igo91fWj0,33402
3
3
  esphome/automation.py,sha256=wnD7iJvGPSz7q8AJo2o5KglnN_uuhKcWOpYp95Vg9Oc,14507
4
4
  esphome/codegen.py,sha256=A8O0Jr8qBILHlr7NwPPeW2DSKQ9H5d85j5fOXQw0rSQ,1835
5
5
  esphome/config.py,sha256=wztK2UmO7-hc6HFDAi6YWtrPVy5mH0diKuqpsWp4-XA,39616
6
6
  esphome/config_helpers.py,sha256=O7e8KvTpA3i5yjFORNhzPSsVSHDyKmF965b09MHyDWc,3118
7
7
  esphome/config_validation.py,sha256=G79LGVIh5BdpGkzuehkm7Db_llpbC2of4dKqZEpHc3A,64838
8
- esphome/const.py,sha256=wE55Q7i2mP8gDCFv3XHVhifzliXcJKhuwliHQRyJXf8,38812
8
+ esphome/const.py,sha256=XMsEPNZavh-_S6R8g934oXa0TJK1mb73LD8PDNMQQ5w,38843
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
@@ -2942,9 +2942,9 @@ esphome/components/wled/__init__.py,sha256=AYSJB5-v2FKypswubeqM4LApQQrp0Q-fBQvm4
2942
2942
  esphome/components/wled/wled_light_effect.cpp,sha256=YcIARdPNrtSJT6yjDPDOkIvLyD2mBK2EIhv8_Q9IAtc,6298
2943
2943
  esphome/components/wled/wled_light_effect.h,sha256=6wtpRz3uX-wLGKjMOre69Ffv2c_6TEZb6GEod9agKoI,1537
2944
2944
  esphome/components/x9c/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2945
- esphome/components/x9c/output.py,sha256=cafUS4Oj-AraOBMpHYDPukChbCsyUBT4a1E8XqAhAW0,1419
2946
- esphome/components/x9c/x9c.cpp,sha256=I3jDPi3D556z6AeJ4nUlpfjLdRBan0tnBa4gp4TVWfc,2158
2947
- esphome/components/x9c/x9c.h,sha256=fe62I3dvnsxT0akuMlP5BG2XX4hp4L4KhTbUjDYnLow,833
2945
+ esphome/components/x9c/output.py,sha256=vb-reH7DbMGVdKfwyfaEWSe-UGB8BKE2T5qhQWmu-Sg,1579
2946
+ esphome/components/x9c/x9c.cpp,sha256=Pw983GpKJqvIc1p776ZIVtsm75owNWnKhk_XCq2LQBs,2251
2947
+ esphome/components/x9c/x9c.h,sha256=9tHIi0k_9Crtgx--OgHfuNvIqxPfDYsRbcAEdw0fsM8,920
2948
2948
  esphome/components/xgzp68xx/__init__.py,sha256=903wjVVlGEpGzWA2NSglNGTLyJk7-nlddsiyY4K1G9Y,27
2949
2949
  esphome/components/xgzp68xx/sensor.py,sha256=W6MFZ2Dc8TVHNGdt2sqYLmpgvPSPmDpShVPsix-d3SI,1909
2950
2950
  esphome/components/xgzp68xx/xgzp68xx.cpp,sha256=UkumceOmCqhyNJw1mmF7h_LflcPsvTX01FmZ7iNNHoQ,2953
@@ -3112,9 +3112,9 @@ esphome/dashboard/util/itertools.py,sha256=8eLrWEWmICLtXNxkKdYPQV0c_N4GEz8m9Npnb
3112
3112
  esphome/dashboard/util/password.py,sha256=cQz3b9B-ijTe7zS6BeCW0hc3pWv6JjC78jmnycYYAh8,321
3113
3113
  esphome/dashboard/util/subprocess.py,sha256=T8EW6dbU4LPd2DG1dRrdh8li71tt6J1isn411poMhkk,1022
3114
3114
  esphome/dashboard/util/text.py,sha256=ENDnfN4O0NdA3CKVJjQYabFbwbrsIhVKrAMQe53qYu4,534
3115
- esphome-2024.6.0b1.dist-info/LICENSE,sha256=HzEjkBInJe44L4WvAOPfhPJJDNj6YbnqFyvGWRzArGM,36664
3116
- esphome-2024.6.0b1.dist-info/METADATA,sha256=kLhajvXY6GwV2JsJkQuVq_RtplClLyjZIR3xQ68J2XM,3265
3117
- esphome-2024.6.0b1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
3118
- esphome-2024.6.0b1.dist-info/entry_points.txt,sha256=mIxVNuWtbYzeEcaWCl-AQ-97aBOWbnYBAK8nbF6P4M0,50
3119
- esphome-2024.6.0b1.dist-info/top_level.txt,sha256=0GSXEW3cnITpgG3qnsSMz0qoqJHAFyfw7Y8MVtEf1Yk,8
3120
- esphome-2024.6.0b1.dist-info/RECORD,,
3115
+ esphome-2024.6.0b2.dist-info/LICENSE,sha256=HzEjkBInJe44L4WvAOPfhPJJDNj6YbnqFyvGWRzArGM,36664
3116
+ esphome-2024.6.0b2.dist-info/METADATA,sha256=SjbtnoJqQtV2oQgCiHeoiwkJ8tfwnS25neRRFjoZUOk,3265
3117
+ esphome-2024.6.0b2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
3118
+ esphome-2024.6.0b2.dist-info/entry_points.txt,sha256=mIxVNuWtbYzeEcaWCl-AQ-97aBOWbnYBAK8nbF6P4M0,50
3119
+ esphome-2024.6.0b2.dist-info/top_level.txt,sha256=0GSXEW3cnITpgG3qnsSMz0qoqJHAFyfw7Y8MVtEf1Yk,8
3120
+ esphome-2024.6.0b2.dist-info/RECORD,,