Michael
eaa32146a6
Add sensor platform to Proximity ( #101497 )
...
* add sensor platform
* transl. of distance already covered by dev.class
* add untested files to .coveragerc
* add missing state translations
* remove translation key for distance sensor
* proximity entity do not use HA number system
* fix
* extend tests
* make const final to be usable as key for TypedDict
* remove proximity from .coveragerc
* replace typeddict by simple dict definition
* make black happy
* rework to create proximity sensor for each tracked entity and always recalculate all entites
* apply review comments
* move direction of travel calc out of the loop
* make direction of travel an enum sensor
* remove unique_id from sensors
* don't set distance=0 when in monitored zone
* set None when direction is unknown
* keep distance 0 in case arrived for legacy entity
* exclude from nearest when in ignored zone
* keep distance=0 when arrived
* use description name for entity name
* remove uneeded typing
* uses consistent variable name
* fix debug messages
* use entity_id as loop var
* rename device_state to tracked_entity_state
* correct MRO for sensor entity classes
2024-01-23 10:56:02 +01:00
Michael
efe33d815f
Address late proximity coordinator review comments ( #103879 )
2023-11-12 21:36:54 +01:00
Michael
b2f31d5763
Implement update coordinator in Proximity ( #103443 )
2023-11-12 18:28:39 +01:00
Michael
2616794e1d
Fix proximity entity id ( #102992 )
...
* fix proximity entity id
* extend test to cover entity id
2023-10-29 10:43:57 +01:00
Michael
6202f178af
Fix proximity zone handling ( #102971 )
...
* fix proximity zone
* fix test
2023-10-28 22:32:42 -04:00
Martin Hjelmare
91087392fe
Disable proximity no platform log ( #95838 )
2023-07-04 12:52:04 +02:00
J. Nick Koston
be08bb5ba6
Convert proximity to be async ( #93241 )
2023-05-18 16:32:12 -05:00
epenet
d72c28a135
Use UnitOfLength in integrations ( #84034 )
2022-12-15 12:42:53 +01:00
epenet
24c26dc032
Use unit_conversion in components ( #79204 )
...
* Use unit_conversion in components
* Two more
2022-09-28 16:05:31 +02:00
Erik Montnemery
7ead77eea6
Correct typing of async_track_state_change ( #79150 )
...
* Correct typing of async_track_state_change
* Update integrations
2022-09-27 16:32:54 +01:00
epenet
03a24e3a05
Improve type hints in proximity ( #78348 )
2022-09-14 11:22:58 +02:00
Marc Mueller
3a45168b97
Improve proximity typing ( #65053 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-27 17:05:08 +01:00
epenet
4fad49ec57
Add setup type hints to proximity ( #63990 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-13 02:30:10 +01:00
Marc Mueller
62c20860ac
Use assignment expressions 22 ( #57971 )
2021-10-21 08:33:10 +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
Erik Montnemery
346a724ac3
Mark base components' state_attribute @final, rename others to extra_state_attributes ( #48161 )
...
* Mark base state_attributes @final, rename others to extra_state_attributes
* Fix calendar, update tests
2021-03-21 10:38:24 +01:00
springstan
67b3552165
Add more units to distance conversion util ( #40181 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-09 11:38:15 +01:00
Ville Skyttä
5e90a4d000
Use more state attribute name constants ( #40428 )
2020-09-21 23:03:39 +02:00
springstan
9311b02369
Use LENGTH_FEET constant ( #34053 )
2020-06-10 21:38:29 +02:00
springstan
00b6409b76
Use LENGTH_METERS constant ( #34110 )
2020-04-12 21:44:56 +02:00
springstan
b2af1de273
Improve string formatting v9 ( #34050 )
...
* Improve string formatting v9
* Address review comments
2020-04-12 17:18:09 +02:00
springstan
328cadbaa2
Use LENGTH_KILOMETERS constant ( #33976 )
...
* Use LENGTH_KILOMETERS constant
* Fix tests by importing the constant directly
2020-04-11 02:12:39 +02:00
springstan
e3bcfb88e7
Improve string formatting v4 ( #33668 )
...
* Improve string formatting v4
* Use normal strings instead of f-strings
* Fix zeroconf test by adding back part of a condition
2020-04-05 16:01:41 +02:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Bas Nijholt
21816eeed4
Sort imports according to PEP8 for components starting with "P" ( #29775 )
2019-12-09 14:29:39 +01:00
Ville Skyttä
33e1b44b3a
Use PEP 526 type annotations, add some type hints ( #26464 )
...
* Add some more type hints to helpers.event
* Change most type comments to variable types
* Remove some superfluous type hints
2019-09-07 09:48:58 +03:00
Franck Nijhof
1c5e0123c9
Use literal string interpolation in integrations N-Q (f-strings) ( #26391 )
2019-09-03 11:35:00 -07:00
Ville Skyttä
b738082dad
Type check various base components ( #25878 )
...
* Type check various component base classes, disabling bunch of checks for now
* Type hint fixes
* Help mypy out some
* Add more type hints
2019-08-11 20:38:18 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -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
Fabian Affolter
161c368c9d
Update file header ( #21054 )
...
* Update file header
* Update __init__.py
2019-02-13 20:35:12 -08:00
Paulus Schoutsen
b8cc547fa3
Move components to folders ( #20774 )
...
* Move all components into folders
* Move component tests into folders
* Fix init moving
* Move tests
* Lint
* Update coverage
* Fix service descriptions
* Update CODEOWNERS
2019-02-05 19:31:15 -08:00