Commit Graph

31 Commits (857c9e383636c03993e17d929a4c1d7acf2d7a8c)

Author SHA1 Message Date
epenet e50c00ea06
Use new enums in esphome (#61391)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-10 09:56:20 +01:00
Franck Nijhof 4a83ee5dab
Use native datetime value in ESPHome sensors (#59896) 2021-11-18 15:32:39 +01:00
Paul Monigatti a3b3c4ebad
Consolidate ESPHome icon-handling code into EsphomeEntity (#57744) 2021-10-22 18:21:41 +02:00
Otto Winter e633cc177e
ESPHome sensor use total_increasing state class (#55208) 2021-08-25 15:33:26 +02:00
Erik Montnemery 41f3c2766c
Move temperature conversions to entity base class (2/8) (#54468) 2021-08-11 18:57:12 +02:00
Jesse Hills ec5d55dc30
Auto reset on value going back to 0 in ESPHome (#53592)
* ESPHome - Auto reset on value going back to 0

* Remove logging lines

* Remove useless stuff

* Move callback to sensor class
Wrap `track_change_event` in `async_on_remove`

* Convert to using internal callbacks and RestoreEntity

* Don't document fixmes?

* Review fixes

* Review fixes

Co-authored-by: Otto winter <otto@otto-winter.com>
2021-07-28 13:56:45 +02:00
Daniel Hjelseth Høyer fbad453c89
Pylint 2.9.3 (#52972)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
Otto Winter 4d16cda957
ESPHome enable static type checking (#52348) 2021-07-12 22:56:10 +02:00
Otto Winter 03ec7b3d0b
ESPHome rework EsphomeEnumMapper for safe enum mappings (#51975) 2021-06-21 21:22:38 -07:00
Franck Nijhof 997a847b5c
Add support for Sensor state class to ESPHome (#51090)
* Add support for Sensor state class to ESPHome

* Bump aioesphome to 2.8.0
2021-05-26 00:21:18 +02:00
Franck Nijhof 61b0e66405
Fix ESPHome timestamp sensor (#50305) 2021-05-08 19:37:09 +02:00
J. Nick Koston 9a6402c1ae
Only compile esphome icon schema once (#49688) 2021-04-26 12:37:13 +02:00
Franck Nijhof 168b3c100c
Remove HomeAssistantType alias - Part 4 (#49515) 2021-04-21 12:18:42 +02:00
Erik Montnemery 9e9ba53f0e
Move SensorEntity last in the inheritance tree (#48230) 2021-03-22 20:05:13 +01:00
Erik Montnemery 23b562386f
Migrate integrations d-e to extend SensorEntity (#48211) 2021-03-22 12:52:29 +01:00
Marc Mueller 91df3fa904
Update typing 06 (#48039) 2021-03-17 23:49:01 +01:00
marecabo c6c0e2416c
Validate icon and device_class of ESPHome sensor entities (#46709) 2021-02-20 13:05:35 -06:00
marecabo c45ce86e53
Do not provide icon if device class is set in ESPHome config (#46650) 2021-02-16 20:36:32 +01:00
marecabo 1e172dedf6
Add device_class attribute to ESPHome sensor entities (#46595) 2021-02-15 20:19:31 -10:00
Franck Nijhof dd8d4471ec
Postponed evaluation of annotations for integrations (#46455) 2021-02-12 18:54:00 +01:00
Philip Allgaier 625bbe6238
Cleanup unused loggers (components A-M) (#41600) 2020-10-12 16:59:05 +02:00
springstan 9801810552
Use f-strings in integrations starting with "B"-"E" (#32121)
* Use f-strings in integrations starting with B

* Use f-strings in integrations starting with C

* Use f-strings in integrations starting with D

* Use f-strings in integrations starting with E

* Fix pylint errors

* Fix pylint errors v2

* Fix tests

* Fix tests v2
2020-02-24 08:47:52 -08:00
Otto Winter a1f2b6d402 ESPHome fix missing state in certain circumstances (#28729)
* Fix ESPHome having missing state in certain situations

Fixes https://github.com/esphome/issues/issues/828

* Update requirements_all

* Also fix climate preset mode
2019-11-12 09:26:46 -08:00
Otto Winter ba10d5d604 Add ESPHome sensor force_update option (#28059)
* Add ESPHome sensor force_update option

* Update aioesphomeapi to 2.4.0
2019-10-21 16:06:57 +02:00
Ville Skyttä 761d7f21e9 Upgrade pylint (#27279)
* Upgrade pylint to 2.4.2 and astroid to 2.3.1

https://pylint.readthedocs.io/en/latest/whatsnew/2.4.html
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-1
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-2

* unnecessary-comprehension fixes

* invalid-name fixes

* self-assigning-variable fixes

* Re-enable not-an-iterable

* used-before-assignment fix

* invalid-overridden-method fixes

* undefined-variable __class__ workarounds

https://github.com/PyCQA/pylint/issues/3090

* no-member false positive disabling

* Remove some no longer needed disables

* using-constant-test fix

* Disable import-outside-toplevel for now

* Disable some apparent no-value-for-parameter false positives

* invalid-overridden-method false positive disables

https://github.com/PyCQA/pylint/issues/3150

* Fix unintentional Entity.force_update override in AfterShipSensor
2019-10-07 08:17:39 -07:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Otto Winter 015c8811a5 Use global imports for ESPHome (#24158)
* Use global import for ESPHome

* Add aioesphomeapi to test requirements

aioesphomeapi is also shipped as a pure-python wheel, so this should not impact test install time
2019-05-29 13:33:49 +02:00
Otto Winter 3186109172 Simplify esphome (#22868)
* Add ESPHome climate support

* Adjust line length

* Update .coveragerc

* Update climate.py

* Simplify esphome integration

* Undo change

* Update cover.py
2019-04-16 13:48:46 -07:00
cgtobi 2c07bfb9e0 Remove dependencies and requirements (#23024)
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2c.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen 4b1de61110
Use relative imports inside integrations (#22235)
* Use relative imports inside integrations

* Lint

* Fix automation tests

* Fix scene imports
2019-03-20 22:56:46 -07:00
Otto Winter f225570980 Move ESPHome Source Files (#20092)
* Move ESPHome source files

* Update .coveragerc

* Update CODEOWNERS
2019-01-14 09:00:48 -07:00