aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/htu21d.py
Commit message (Collapse)AuthorAgeFilesLines
* Run black on all first party python codeTomasz Kramkowski2025-08-061-106/+120
|
* klippy: fix typos in python code (#6989)Thijs Triemstra2025-07-251-1/+1
| | | Signed-off-by: Thijs Triemstra <info@collab.nl>
* htu21: fix crash on unknown dev idTimofey Titovets2025-06-021-16/+22
| | | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* klippy: Replace deprecated logger.warn with logger.warning (#6385)Thijs Triemstra2023-11-161-6/+8
| | | | | | | Replace deprecated logger.warn with logger.warning logger.warn will be removed in Python 3.13 Signed-off-by: Thijs Triemstra <info@collab.nl>
* htu21d: SI7021 is has id 0x15 (#5375)Uli2022-04-111-2/+2
| | | | | This is most probably the result of a copy paste error. All vendor documentation for SI7021 (e.g. https://www.silabs.com/documents/public/data-sheets/Si7021-A20.pdf) points to 21 and it actually only works when adapted to 0x15 (=21). Signed-off-by: Uli Wolf <github+klipper@wolf-u.li>
* htu21d: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* htu21d: Update htu21d.py (#4520)dawidmpunkt2021-08-171-1/+1
| | | | | Line 202: should be self.humidity instead of self.temp Signed-off-by: Dawid Murawski <dawid.m@gmx.net>
* htu21d: sensor definition fix (#4075)Jon Sanders2021-03-181-0/+3
| | | | | | | | HTU21D sensor class lacked the method `get_report_time_delta` invoked during watermark control loops. This short fix simply adds that method in, calling the `self.report_time` attribute created during class construction. Signed-off-by: Jon Sanders <jonsan@gmail.com>
* htu21d: Implement support for min_temp/max_temp checksKevin O'Connor2021-02-011-2/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* htu21d: Fix time reporting of temperature measurementsKevin O'Connor2021-01-241-1/+2
| | | | | | The temperature callback takes a "print time" not a "system time". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* htu21d: Start temperature measurements from "klippy:connect" callbackKevin O'Connor2020-12-011-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extras: Use "from . import module" for relative importsKevin O'Connor2020-06-151-3/+2
| | | | | | Use alternate import syntax to improve Python3 compatibility. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* htu21d: Support for HTI21D family sensor on I2C bus (#2803)Lucio Tarantino2020-05-031-0/+238
Signed-off-by: Lucio Tarantino <lucio.tarantino@gmail.com>