1
0
mirror of https://github.com/home-assistant/core.git synced 2025-08-13 15:30:03 +00:00
Commit Graph

19 Commits

Author SHA1 Message Date
Marc Mueller
45d8d04c40 Use assignment expressions [other] () 2022-02-19 17:22:51 +01:00
J. Nick Koston
a18d4c51ff Ensure dhcp can still discover new devices from device trackers ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-19 09:01:34 -06:00
Erik Montnemery
30fd902764 Correct zone state ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-27 10:01:09 -08:00
Paulus Schoutsen
2b4bb49eb7 Make device tracker entities work better ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-04 23:16:43 -08:00
Ruslan Sayfutdinov
b704f0e729 Add strict typing to device_tracker ()
* 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
62386c8676 Enable type checks for device_tracker ()
* Enable type checks for device_tracker

* Fix MQTT test
2021-05-19 09:36:26 +01:00
Ville Skyttä
1c587d2e47 Fix and add some ScannerEntity property type hints () 2021-04-20 23:38:07 +03:00
Erik Montnemery
346a724ac3 Mark base components' state_attribute @final, rename others to extra_state_attributes ()
* 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 () 2021-03-17 23:43:55 +01:00
Martin Hjelmare
a9a0f8938f Move device tracker scanner attributes to ScannerEntity () 2021-01-19 11:04:08 -06:00
J. Nick Koston
5e01b828af Discover devices from device_trackers with router sources ()
* Discover devices from device_trackers with router sources

* Update homeassistant/components/dhcp/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* fix stop being called on the wrong context

* clean

* move it to base

* cleanup was too agressive

* Update homeassistant/components/dhcp/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* coverage

* revert legacy changes

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-01-16 01:01:37 +01:00
Paulus Schoutsen
7678d66464 Fix device tracker TrackerEntity defaults () 2020-03-04 09:43:52 +01:00
Paulus Schoutsen
ca1319e1ef Device tracker entities based on GPS should always publish updates () 2020-02-08 19:56:48 +01:00
Bas Nijholt
01d651c67d Sort imports according to PEP8 for device_tracker () 2019-12-09 12:14:38 +01:00
Ville Skyttä
33e1b44b3a Use PEP 526 type annotations, add some type hints ()
* 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
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Robert Svensson
01b890f426 Merge UniFi device tracker to config entry ()
* Move device tracker to use config entry

* Remove monitored conditions attributes based on ADR0003

* Add support for import of device tracker config to be backwards compatible

* Remove unnecessary configuration options from device tracker

* Add component configuration support
2019-07-14 21:57:09 +02:00
David F. Mulcahey
3c487928d4 New scanner device tracker and ZHA device tracker support ()
* initial implementation for zha device trackers

* constant

* review comments

* Revert "review comments"

This reverts commit 2130823566820dfc114dbeda08fcdf76ed47a4e7.

* rename device tracker entity

* update trackers

* raise when not implemented

* Update homeassistant/components/device_tracker/config_entry.py

Review comment

Co-Authored-By: Martin Hjelmare <marhje52@kth.se>

* move source type to base state attrs

* review comments

* review comments

* review comments

* fix super call

* fix battery and use last seen from device

* add test

* cleanup and add more to test

* cleanup post zha entity removal PR

* add tests for base entities

* rework entity tests
2019-07-04 12:44:39 +02:00
Paulus Schoutsen
e6d7f6ed71 Config entry device tracker ()
* 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