Tobias Sauerwein
2c904c0974
Bump mypy to 0.930 ( #62642 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-12-27 17:55:17 +01:00
Marc Mueller
7063c05127
Use assignment expressions 33 ( #58717 )
2021-10-30 16:32:41 +02:00
Marc Mueller
eab235173b
Use assignment expressions 28 ( #58189 )
2021-10-22 14:06:04 +02:00
Marc Mueller
364767ff22
Import Callable from collections.abc (4) ( #56778 )
2021-09-29 16:15:36 +02:00
Marc Mueller
10bfc78365
Fix missing encoding with open() ( #53593 )
...
* Fix missing encoding with open()
* Fix tests
* Improve open - frontend
2021-07-28 09:41:45 +02:00
Ruslan Sayfutdinov
b704f0e729
Add strict typing to device_tracker ( #50930 )
...
* Add strict typing to device_tracker
* Update homeassistant/components/device_tracker/legacy.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-22 09:15:15 +01:00
Ruslan Sayfutdinov
00208ff0d8
Use type safe import for device_tracker.PLATFORM_SCHEMA ( #50860 )
2021-05-21 13:08:40 +02:00
Ruslan Sayfutdinov
62386c8676
Enable type checks for device_tracker ( #50805 )
...
* Enable type checks for device_tracker
* Fix MQTT test
2021-05-19 09:36:26 +01:00
Marc Mueller
c07646db5d
Update typing syntax ( #49480 )
...
* Update typing syntax
* Replace typing imports with ones from collections where possible
* Changes after review
2021-04-20 17:40:41 +02:00
Joakim Sørensen
9585defca0
Add device_tracker scanners to hass.config.components ( #49063 )
2021-04-11 13:54:43 -10:00
J. Nick Koston
12e3bc8101
Provide api to see which integrations are being loaded ( #48274 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-04-04 22:11:44 -10:00
Franck Nijhof
855b68faa1
Remove HomeAssistantType alias from entity components - Part 1 ( #48467 )
2021-03-29 13:24:36 -10:00
J. Nick Koston
1fb9008488
Include platform only integrations in the manifest list api ( #48269 )
2021-03-29 12:51:48 +02: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
Marc Mueller
7c0734bdd5
Update typing 05 ( #48038 )
2021-03-17 23:43:55 +01:00
Erik Montnemery
6c084ae6ce
Update integrations a-e to override extra_state_attributes() ( #47756 )
2021-03-11 16:51:03 +01:00
Ville Skyttä
a6358430b4
Fix deprecated asyncio.wait use with coroutines ( #44981 )
...
https://docs.python.org/3/library/asyncio-task.html#asyncio-example-wait-coroutine
2021-02-10 14:16:58 +01:00
Martin Hjelmare
a745594712
Move legacy device tracker setup to legacy module ( #43447 )
2020-11-20 21:28:00 +01:00
J. Nick Koston
5b8ecc26a4
Update device_tracker to use async_add_executor_job ( #41515 )
2020-10-08 23:56:32 +02:00
Paulus Schoutsen
aef06a3544
Directly call write state 2 ( #33513 )
...
* Directly call async_write_ha_state pt2
* Directly call async_write_ha_state pt2
* Fix mock
* Address comments
2020-04-03 09:34:50 +02:00
Franck Nijhof
b8fab33e69
Remove deprecated hide_if_away from device trackers ( #32705 )
2020-03-12 11:55:18 +01:00
Ville Skyttä
9b2544c923
Remove some unneeded pylint suppressions ( #32152 )
2020-02-24 16:47:15 -08: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
mueslo
00b3efec89
prevent dev_id being permanently assigned as config_name ( #31886 )
2020-02-16 21:07:49 -08:00
Franck Nijhof
a017c26234
Partially Revert "Deprecate hide_if_away from device_tracker ( #30833 ) ( #31348 )
2020-01-31 08:27:16 -08:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ( #31281 )
...
* Fix callback and async
* Fix a return
* Fix test
* Fix mqtt tests
* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Franck Nijhof
8861c80068
Deprecate hide_if_away from device_tracker ( #30833 )
2020-01-16 10:31:00 -08:00
Paulus Schoutsen
9aa02e35a7
Entity Component to no longer generate automatic groups ( #23789 )
2020-01-07 17:30:53 +01:00
bouni
5a35e52adf
Move imports in device_tracker component ( #27676 )
...
* moved imports to top level
* sorted imports using isort
2019-10-16 10:25:37 +02: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
2f0eb07624
Migrate legacy typehints in core to PEP-526 ( #26403 )
...
* Migrate legacy typehints in core to PEP-526
* Fix one type
2019-09-03 20:36:04 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Martin Hjelmare
7881081207
Fix device tracker see for entity registry entities ( #24633 )
...
* Add a test for see service gaurd
* Guard from seeing devices part of entity registry
* Await registry task early
* Lint
* Correct comment
* Clean up wait for registry
* Fix spelling
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* Fix spelling
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
2019-06-20 03:22:33 +02:00
Paulus Schoutsen
e6d7f6ed71
Config entry device tracker ( #24040 )
...
* Move zone helpers to zone root
* Add config entry support to device tracker
* Convert Geofency
* Convert GPSLogger
* Track unsub per entry
* Convert locative
* Migrate OwnTracks
* Lint
* location -> latitude, longitude props
* Lint
* lint
* Fix test
2019-05-25 13:34:53 -07:00
Joakim Plate
9d7aa8f05d
Remove device tracker unnecessary separate except clause ( #24081 )
...
Handle exception where it can be thrown.
2019-05-25 11:29:19 +02:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
Paulus Schoutsen
70ed58a78d
Restructure device tracker ( #23862 )
...
* Restructure device tracker
* Docstyle
* Fix typing
* Lint
* Lint
* Fix tests
2019-05-15 23:43:45 +02:00