From e3a454d1a60724a1c0cf0f3e1b7029ecf8a1c96d Mon Sep 17 00:00:00 2001 From: 2mikrobi <2mikrobi@gmail.com> Date: Tue, 15 Nov 2022 20:12:09 +0100 Subject: [PATCH 1/2] Update_interval less that 1 second in QMC5883L integration (#4031) Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/qmc5883l/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/qmc5883l/sensor.py b/esphome/components/qmc5883l/sensor.py index 100ac93520..cce4d93843 100644 --- a/esphome/components/qmc5883l/sensor.py +++ b/esphome/components/qmc5883l/sensor.py @@ -103,7 +103,7 @@ CONFIG_SCHEMA = ( def auto_data_rate(config): - interval_sec = config[CONF_UPDATE_INTERVAL].seconds + interval_sec = config[CONF_UPDATE_INTERVAL].total_milliseconds / 1000 interval_hz = 1.0 / interval_sec for datarate in sorted(QMC5883LDatarates.keys()): if float(datarate) >= interval_hz: From e8784ba3834898a7b756ae4522667f25c2adc5a7 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 16 Nov 2022 12:30:41 +1300 Subject: [PATCH 2/2] Bump version to 2022.11.0b5 --- esphome/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/const.py b/esphome/const.py index beeb7d62b4..fe8fedad48 100644 --- a/esphome/const.py +++ b/esphome/const.py @@ -1,6 +1,6 @@ """Constants used by esphome.""" -__version__ = "2022.11.0b4" +__version__ = "2022.11.0b5" ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"