My Home-IoT
Find a file
dubit0 002861f13b
Float output: Fix min_power and max_power adjusting when output is inverted (#1250)
This patch fixes faulty behaviour when both, invert and min_power/max_power
are set for a float output (e.g. PWM). The current code scales the output
level to the range [min_power, max_power] and subsequently inverts the value.
This leads to values that are outside the range [min_power, max_power].

This patch fixes the problem by inverting the requested level first and then
scaling it to the interval [min_power, max_power].

Co-authored-by: Thomas Niederprüm <niederp@physik.uni-kl.de>
2020-10-01 19:55:42 -03:00
.devcontainer Add lambda to devcontainer config (#1059) 2020-05-19 21:02:10 -03:00
.github Dont fast fail testing so results are not hidden in matrix builds (#1286) 2020-09-30 06:50:06 +13:00
docker Bump docker base image to 2.6.0 (#1245) 2020-08-08 18:42:21 +02:00
esphome Float output: Fix min_power and max_power adjusting when output is inverted (#1250) 2020-10-01 19:55:42 -03:00
script Bump docker base image to 2.6.0 (#1245) 2020-08-08 18:42:21 +02:00
tests Readds the battery level for xiaomi_hhccjcy01 (#1288) 2020-09-19 23:37:34 -03:00
.clang-format 🏗 Merge C++ into python codebase (#504) 2019-04-17 12:06:00 +02:00
.clang-tidy 🏗 Merge C++ into python codebase (#504) 2019-04-17 12:06:00 +02:00
.coveragerc Unittests for esphome python code (#931) 2020-03-12 14:27:22 -07:00
.dockerignore Fix docker build 2018-09-25 10:30:45 +02:00
.editorconfig Create .editorconfig (#524) 2019-05-08 15:37:18 +02:00
.gitignore Feature/wizard tests (#1167) 2020-07-23 23:51:14 +02:00
.gitpod.yml extract and use current version of python 3 (#938) 2020-01-09 13:27:39 -08:00
.pre-commit-config.yaml Bugfix/normalize core comparisons (and Python 3 update fixes) (#952) 2020-01-13 14:35:55 -08:00
CODE_OF_CONDUCT.md Add Code of Conduct (Contributor Covenant) (#168) 2018-10-12 11:26:26 +02:00
CODEOWNERS Add @jesserockz to codeowners (#1202) 2020-07-26 14:33:16 +02:00
CONTRIBUTING.md Rename esphomeyaml to esphome (#426) 2019-02-13 16:54:02 +01:00
LICENSE 🏗 Merge C++ into python codebase (#504) 2019-04-17 12:06:00 +02:00
MANIFEST.in Fix sdist missing requirements.txt (#1214) 2020-07-28 14:29:01 +02:00
platformio.ini Bump ESPAsyncTCP from 1.2.2 to 1.2.3 (#1227) 2020-07-30 11:38:57 +02:00
pylintrc Revert "Sort keys in dicts in output yaml for 'config' command (#1049)" (#1191) 2020-07-25 14:21:56 +02:00
pytest.ini Unittests for esphome python code (#931) 2020-03-12 14:27:22 -07:00
README.md Update README.md 2019-02-14 13:49:22 +01:00
requirements.txt Bump paho-mqtt from 1.5.0 to 1.5.1 (#1297) 2020-09-27 20:31:21 -03:00
requirements_test.txt Bump pytest-cov from 2.10.0 to 2.10.1 (#1253) 2020-09-27 20:31:46 -03:00
setup.cfg Bugfix/normalize core comparisons (and Python 3 update fixes) (#952) 2020-01-13 14:35:55 -08:00
setup.py Improve setup.py 2020-07-24 10:35:07 +02:00

ESPHome Build Status Discord Chat GitHub release

ESPHome Logo

Documentation: https://esphome.io/

For issues, please go to the issue tracker.

For feature requests, please see feature requests.