My Home-IoT
Find a file
0hax 5624fafb3a
Fix handling of timestamps in Teleinfo component. (#2392)
* teleinfo: avoid a buffer overflow.

When reading tag or values, data is written to the buffer even if the
size if bigger than the buffer. Add a new 'max_len' argument to
get_field() to avoid this error.

Signed-off-by: 0hax <0hax@protonmail.com>

* teleinfo: read extra timestamp field for some tags.

Some tags has an extra timestamp field that need to be read before the
actual data.
The code is inspired by Jpsy work:

29339c14f9

Signed-off-by: 0hax <0hax@protonmail.com>

* teleinfo: increase MAX_BUF_SIZE to suffice for 3-phase Linky in Standard mode.

* teleinfo: handle DATE tag correctly.

The DATE tag is special due its format and need to be handled
separately.
Fix from DrCoolzic.

Signed-off-by: 0hax <0hax@protonmail.com>

Co-authored-by: Jörg Wagner <jwagner@digilog.de>
2021-09-27 22:32:08 +02:00
.devcontainer Redo docker build system with buildkit+multi-stage and cache pio packages (#2338) 2021-09-20 09:07:38 +02:00
.github CI cache only restore from direct matches (#2351) 2021-09-20 13:14:05 +02:00
.vscode Refactor clang-tidy script to use actual compiler flags and includes (#2133) 2021-08-09 22:43:18 +02:00
docker Fix docker pio settings not applied (#2370) 2021-09-22 10:32:39 +02:00
esphome Fix handling of timestamps in Teleinfo component. (#2392) 2021-09-27 22:32:08 +02:00
script Fix clang-tidy header filter (#2385) 2021-09-24 18:02:28 +02:00
tests Add cover toggle support (#1809) 2021-09-27 22:31:15 +02:00
.clang-format Configure clang-format for consistent pointer alignment (#1890) 2021-06-10 12:55:20 +02:00
.clang-tidy Fix clang-tidy header filter (#2385) 2021-09-24 18:02:28 +02:00
.coveragerc Unittests for esphome python code (#931) 2020-03-12 14:27:22 -07:00
.dockerignore More VSCode devcontainer improvements (#1934) 2021-06-22 16:37:05 +02:00
.editorconfig Adds support cpp to vscode (#1828) 2021-06-15 10:45:22 +12:00
.gitattributes Fix devcontainer scripts on Windows (#2239) 2021-09-13 10:08:06 +02:00
.gitignore Allow compilation against IDF from repository (#2355) 2021-09-21 17:12:17 +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 Rename master branch to release (#1976) 2021-07-02 15:42:36 +02:00
CODE_OF_CONDUCT.md Update email addresses (#1733) 2021-05-03 11:51:10 +12:00
CODEOWNERS Add Current based cover (#1439) 2021-09-27 22:22:45 +02:00
CONTRIBUTING.md Drop obsolete comments from CONTRIBUTING.md (#2271) 2021-09-12 22:04:35 +02: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 Midea fix (#2395) 2021-09-27 09:32:33 +13:00
pylintrc add-black (#1593) 2021-03-07 16:03:16 -03:00
pyproject.toml add-black (#1593) 2021-03-07 16:03:16 -03:00
pytest.ini Unittests for esphome python code (#931) 2020-03-12 14:27:22 -07:00
README.md Rename master branch to release (#1976) 2021-07-02 15:42:36 +02:00
requirements.txt Bump voluptuous from 0.12.1 to 0.12.2 (#2381) 2021-09-23 23:36:19 +02:00
requirements_optional.txt Bump base image to 3.4.0 (#1879) 2021-06-08 22:03:04 +02:00
requirements_test.txt Bump pylint from 2.10.2 to 2.11.1 (#2334) 2021-09-19 19:22:28 +02:00
sdkconfig.defaults Allow compilation against IDF from repository (#2355) 2021-09-21 17:12:17 +02:00
setup.cfg add-black (#1593) 2021-03-07 16:03:16 -03:00
setup.py Fix pypi download url (#2177) 2021-08-18 15:39:57 +12:00

ESPHome 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.