epenet
0a7b1dec7d
Adjust type hint in core add_job ( #66503 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-14 11:13:10 +01:00
Erik Montnemery
d40a830b89
Remove entities when config entry is removed from device ( #66385 )
...
* Remove entities when config entry is removed from device
* Update tests/helpers/test_entity_registry.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Don't remove entities not connected to a config entry
* Update homeassistant/helpers/entity_registry.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-13 17:23:30 +01:00
Joakim Sørensen
7a40ae13a4
Add guard for invalid EntityCategory value ( #66316 )
2022-02-11 14:57:45 +01:00
Kevin Stillhammer
a0119f7ed0
Resolve zones and return state in find_coordinates ( #66081 )
2022-02-09 10:43:20 +01:00
Paulus Schoutsen
716a1e2a64
Add camera media source ( #65977 )
2022-02-08 14:32:02 -08:00
Erik Montnemery
911e488d48
Fix ENTITY_CATEGORIES_SCHEMA ( #66108 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-08 14:00:53 -08:00
Erik Montnemery
009b31941a
Support restoring SensorEntity native_value ( #66068 )
2022-02-08 14:00:26 -08:00
Paulus Schoutsen
95a890c6e1
Get_url to prefer external URL if SSL configured ( #66039 )
2022-02-07 15:44:02 -08:00
Franck Nijhof
fa09cf663e
Update black to 22.1.0 ( #65788 )
2022-02-05 14:19:37 +01:00
Paulus Schoutsen
a6caf3f579
Call out 3rd party containers more clearly ( #65684 )
2022-02-04 09:57:14 -08:00
mk-maddin
efb6fd1569
Fix script / automation repeat with count 0 fails ( #65448 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-02-03 08:18:58 -08:00
w35l3y
076faaa4a4
Add support to reprompt user ( #65256 )
2022-01-31 10:23:26 -08:00
Erik Montnemery
94288886c3
Abort webhook flow when not connected to home assistant cloud ( #64963 )
2022-01-26 10:57:45 -08:00
Marc Mueller
5e633498d2
Enable `no_implicit_reexport` for core files [mypy] ( #63820 )
2022-01-26 10:55:06 +01:00
Erik Montnemery
037621b796
Update _TrackStateChangeFiltered entity listener with new entities ( #64909 )
2022-01-25 18:19:12 +01:00
epenet
f662e8669e
Address late review in entity registry ( #64851 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 22:42:38 +01:00
epenet
3a09090a4b
Drop use of deprecated ENTITY_CATEGORIES ( #64607 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 13:36:42 +01:00
epenet
32d5c8e8ac
Add type hint to RegistryEntry.entity_category ( #64618 )
...
Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 12:51:11 +01:00
Franck Nijhof
176f03d4ac
Allow toggles (switches) state to be None ( #64621 )
2022-01-23 11:31:01 +01:00
J. Nick Koston
2083f0b3c0
Add support for checking if an entity is explicitly included in an entity filter ( #64463 )
2022-01-19 22:38:48 -08:00
Erik Montnemery
a8c14835b9
Add entity options to entity registry ( #64350 )
...
* Initial commit for entity options
* Tweak broadlink tests
* Add async_update_entity_options + test
2022-01-18 22:47:46 +01:00
Erik Montnemery
b3421cf727
Remove Windows workarounds ( #64068 )
2022-01-13 20:41:11 +01:00
epenet
128256a3ee
Fix invalid type hint in discovery async_listen ( #63987 )
...
* Fix invalid type hint in discovery async_listen
* Add setup type hints to sabnzbd
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-13 02:43:43 +01:00
Marc Mueller
8460c2f66d
Improve typing [helpers.entity_registry] ( #63767 )
2022-01-12 14:00:22 +01:00
Marc Mueller
12757a8cd2
Update typing - collections.abc (1) ( #63933 )
...
* Update typing - collections.abc (1)
* Additional typing updates
2022-01-12 07:56:35 +01:00
Stefan Agner
42706f780c
Convert disabled_by to DeviceEntryDisabler on load ( #63944 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-01-11 20:50:32 -08:00
Marc Mueller
240c9979c7
Move `disallow-any-generics` to mypy.ini ( #63917 )
2022-01-11 13:33:25 -08:00
Marc Mueller
d3b7bd25ef
Update typing (1) ( #63922 )
2022-01-11 21:26:03 +01:00
epenet
4eae888546
Fix incorrect type hint in config_per_platform helper ( #63890 )
...
* Adjust base helper
* Filter type is not None in mailbox
* Filter empty platforms in device_tracker
* Filter out empty platform in notify
* Filter out empty platform in entity_component
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-11 17:28:37 +01:00
Marc Mueller
021debb5c5
Resolve implicit imports ( #63832 )
2022-01-10 17:10:46 +01:00
Marc Mueller
01baa20671
Fix implicit reexport [dt_util] ( #63829 )
2022-01-10 16:31:23 +01:00
Petro31
9c6c13a55c
Add is_number as a test for use in select, selectattr, reject, and re… ( #63732 )
2022-01-10 13:00:43 +01:00
epenet
51292cc135
Fix incorrect type hint in discovery helper ( #63789 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-10 11:14:31 +01:00
epenet
665eeb4b27
Explicitely allow Platform enum in discovery helper ( #63571 )
...
* Adjust Platform type hint in discovery helper
* Adjust amcrest
* Adjust comfoconnect
* Adjust ecovacs
* Adjust egardia
* Rename arguments
* Convert Platform enum to string explicitely
* Revert "Adjust egardia"
This reverts commit ff7b0d6100
.
* Revert "Adjust ecovacs"
This reverts commit 2749045e13
.
* Revert "Adjust comfoconnect"
This reverts commit bfff08f7fc
.
* Undo argument name change and conversion to string
* Remove comment
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-09 06:06:56 +01:00
Marc Mueller
eb2238a9e1
Add types for HassJob [helpers.event] ( #63675 )
2022-01-08 14:26:22 +01:00
Erik Montnemery
fc2025509e
Teach call service script action about entity registry ids ( #61172 )
2022-01-07 08:42:47 -08:00
Marc Mueller
54cb1e7556
Add strict typing to `core.py` (5) - Task ( #63243 )
2022-01-07 16:48:34 +01:00
Marc Mueller
250af90acb
Improve callable typing [helpers.event] ( #63543 )
2022-01-06 21:01:27 -10:00
Marc Mueller
198ade5e2b
Fix typing `TrackTemplateResultListener` [helpers.event] ( #63541 )
2022-01-06 13:43:54 -10:00
Erik Montnemery
6d57dbde68
Support passing callbacks to start.async_at_start ( #63473 )
...
* Support passing callbacks to start.async_at_start
* Update homeassistant/helpers/start.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Fix imports
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-05 18:04:09 +01:00
Marc Mueller
40262c4763
Fix exception import locations ( #63454 )
2022-01-05 15:00:49 +01:00
Marc Mueller
c384596899
Use SensorDeviceClass in `sensor` and `helpers` packages ( #63452 )
2022-01-05 14:59:51 +01:00
Marc Mueller
b0f72f59da
Use imports from `core` ( #63458 )
2022-01-05 14:55:38 +01:00
Paulus Schoutsen
2b4bb49eb7
Make device tracker entities work better ( #63328 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-04 23:16:43 -08:00
Marc Mueller
3a32fe9a34
Add strict typing to `core.py` (2) - State ( #63240 )
2022-01-04 18:33:56 +01:00
Marc Mueller
fcd80b2ed7
Fix `ensure_list` typing ( #63311 )
2022-01-04 15:23:48 +01:00
Ville Skyttä
5231bc5dcb
Simplify device registry update ( #62868 )
2022-01-04 15:02:11 +01:00
avee87
04606f05a4
Use built-in Jinja min and max filters in templates ( #60327 )
...
* Use built-in Jinja min and max filters in templates
* use built-in filter for global
* lint
* less generic name
* more tests
* even more tests
2022-01-04 10:07:23 +01:00
epenet
9971831b51
Improve typing in core service registration ( #63005 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-30 21:18:10 +01:00
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