1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-07 23:49:17 +00:00

54 Commits

Author SHA1 Message Date
J. Nick Koston
f4e7ccfcfc
Explictly set PARALLEL_UPDATES for ESPHome entity platforms () 2025-04-15 21:11:05 -10:00
Erik Montnemery
f83c8de8d3
Update signature of platforms' async_setup_entry () 2025-02-10 21:08:03 +01:00
J. Nick Koston
41b129e990
Split esphome state property decorators () 2024-08-25 18:48:17 +02:00
J. Nick Koston
76d6a1fe13
Use identity check for ESPHome sensor device_class () 2024-07-11 22:47:32 -05:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ()
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
0e3945ca6c
Add empty line after module docstring [d-f] () 2024-03-08 14:15:26 +01:00
dougiteixeira
34e9c29ef2
Esphome text sensor device class () 2024-02-25 16:56:52 -10:00
Erik Montnemery
8b99d4678f
Correct checks for non-finite numbers in ESPHome () 2023-08-12 08:10:25 +01:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma () 2023-08-10 14:27:03 +02:00
J. Nick Koston
b77de2abaf
Handle empty strings for ESPHome UOMs () 2023-07-14 12:14:32 -10:00
J. Nick Koston
3b7095c63b
Fix esphome not removing entities when static info changes ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-25 21:31:31 -05:00
J. Nick Koston
57a910a144
Relocate esphome entity code into its own module () 2023-06-24 23:12:36 -04:00
J. Nick Koston
66b2214c55
Add esphome sensor tests () 2023-06-22 21:02:47 +02:00
J. Nick Koston
cd5fdb97c0
Small cleanups to esphome sensor and binary_sensor () 2023-06-22 11:14:33 +02:00
J. Nick Koston
804a8ef36a
Reduce overhead to update esphome entities () 2023-06-21 11:00:21 +02:00
Ville Skyttä
70c49824d7
Import util.dt as dt_util in components/[e-f]* () 2023-05-30 00:00:11 +03:00
Jesse Hills
eb469d6a2f
Move enum mapper to own file to prevent circular dependency ()
* Move enum_mapper to own file to prevent circular dependency

* Add enum mapper test
2023-04-05 22:55:51 -04:00
epenet
bd6a4d10ea
Use try_parse_enum in integrations () 2023-02-02 12:34:01 +01:00
Franck Nijhof
382e1ac679
Code styling tweaks to the ESPHome integration () 2023-01-18 11:10:16 +01:00
Franck Nijhof
412c12b992
Improve device class handling in ESPHome () 2022-11-29 14:07:56 +01:00
Marc Mueller
e8156adb13
Update mypy to 0.981 () 2022-09-26 16:10:06 -04:00
Marc Mueller
79bdc02829
Improve esphome state property decorator typing () 2022-08-26 10:52:05 +02:00
Peter Galantha
3d2101cac5
Add total state_class for esphome () 2022-07-14 21:14:25 +02:00
epenet
e50c00ea06
Use new enums in esphome ()
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 () 2021-11-18 15:32:39 +01:00
Paul Monigatti
a3b3c4ebad
Consolidate ESPHome icon-handling code into EsphomeEntity () 2021-10-22 18:21:41 +02:00
Otto Winter
e633cc177e
ESPHome sensor use total_increasing state class () 2021-08-25 15:33:26 +02:00
Erik Montnemery
41f3c2766c
Move temperature conversions to entity base class (2/8) () 2021-08-11 18:57:12 +02:00
Jesse Hills
ec5d55dc30
Auto reset on value going back to 0 in ESPHome ()
* 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 ()
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 () 2021-07-12 22:56:10 +02:00
Otto Winter
03ec7b3d0b
ESPHome rework EsphomeEnumMapper for safe enum mappings () 2021-06-21 21:22:38 -07:00
Franck Nijhof
997a847b5c
Add support for Sensor state class to ESPHome ()
* 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 () 2021-05-08 19:37:09 +02:00
J. Nick Koston
9a6402c1ae
Only compile esphome icon schema once () 2021-04-26 12:37:13 +02:00
Franck Nijhof
168b3c100c
Remove HomeAssistantType alias - Part 4 () 2021-04-21 12:18:42 +02:00
Erik Montnemery
9e9ba53f0e
Move SensorEntity last in the inheritance tree () 2021-03-22 20:05:13 +01:00
Erik Montnemery
23b562386f
Migrate integrations d-e to extend SensorEntity () 2021-03-22 12:52:29 +01:00
Marc Mueller
91df3fa904
Update typing 06 () 2021-03-17 23:49:01 +01:00
marecabo
c6c0e2416c
Validate icon and device_class of ESPHome sensor entities () 2021-02-20 13:05:35 -06:00
marecabo
c45ce86e53
Do not provide icon if device class is set in ESPHome config () 2021-02-16 20:36:32 +01:00
marecabo
1e172dedf6
Add device_class attribute to ESPHome sensor entities () 2021-02-15 20:19:31 -10:00
Franck Nijhof
dd8d4471ec
Postponed evaluation of annotations for integrations () 2021-02-12 18:54:00 +01:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) () 2020-10-12 16:59:05 +02:00
springstan
9801810552
Use f-strings in integrations starting with "B"-"E" ()
* 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 ()
* 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 ()
* 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 ()
* 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 ()
* 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