Franck Nijhof
4c51299dcc
Add easy converting string timestamps/dates to datetime objects in templates ( #51576 )
2021-06-07 15:02:15 +02:00
Franck Nijhof
f35929ba63
Allow referencing sensor entities for before/after in time conditions ( #51444 )
...
* Allow referencing sensor entities for before/after in time conditions
* Fix typo in variable naming
* Improve test coverage
2021-06-07 14:50:31 +02:00
Franck Nijhof
05241a7a68
Allow number/sensor entities in numeric state conditions/triggers ( #51439 )
2021-06-04 18:14:48 +02:00
Paulus Schoutsen
ede7932a57
Protect our user agent ( #51486 )
...
* Protect our user agent
* Fix expected error
2021-06-04 09:14:18 -07:00
Franck Nijhof
d51fc5814a
Define ToggleEntity entity attributes as class variables ( #51231 )
...
* Define ToggleEntity entity attributes as class variables
* Fix upcloud overriding state property
* Implement available state for upcloud, to compensate removed state
2021-06-02 08:53:55 +02:00
Paulus Schoutsen
ee2c950716
Merge system options into pref properties ( #51347 )
...
* Make system options future proof
* Update tests
* Add types
2021-06-01 22:34:31 +02:00
Franck Nijhof
c5dc99c052
Fix time condition microsecond offset when using input helpers ( #51337 )
2021-06-01 17:57:23 +02:00
Erik Montnemery
63e16de6c0
Improve time condition trace ( #51335 )
2021-06-01 17:07:45 +02:00
Paulus Schoutsen
45e1473f83
Improve config validation for key_value_schemas ( #49429 )
2021-06-01 11:23:59 +02:00
Paulus Schoutsen
f472219c68
Set up cloud semi-dependencies at start ( #51313 )
2021-06-01 01:35:31 +02:00
Paulus Schoutsen
4821484d2c
Add system option to disable polling ( #51299 )
2021-05-31 15:36:40 -07:00
Erik Montnemery
837220cce4
Add deprecated backwards compatible history.LazyState ( #51144 )
2021-05-28 11:01:28 +02:00
Raman Gupta
58e37435b3
Make more max lengths constants and add additional MaxLengthExceeded checks ( #50337 )
...
* Add more MaxLengthExceeded checks
* remove some validations to reduce performance impact
* check length of generated entity ID
* dont check entity ID twice and use single context id length constant
* fix test
* add missing test
2021-05-25 19:58:01 +02:00
Erik Montnemery
abd6f739e8
Pylint fix ( #51083 )
2021-05-25 10:53:18 -07:00
Erik Montnemery
7b5e63132c
Prevent parallel reload of automations ( #50008 )
2021-05-25 08:50:50 -07:00
Matt Zimmerman
e964c607a3
jinja2.contextfilter decorator renamed to pass_context ( #51007 )
...
* jinja2.contextfilter decorator renamed to pass_context
* bump jinja2 dependency
2021-05-24 17:38:37 +02:00
Ruslan Sayfutdinov
44bbd9396d
Fix typing in config flow helper ( #50994 )
2021-05-23 14:08:21 +02:00
Franck Nijhof
38d095aa18
Define entity attributes as entity class variables ( #50925 )
...
* Define entity attributes as entity class variables
* Example coronavirus integration
* Example verisure
* Cleanup/typing fixes
* Fix Coronavirus
* Revert "Fix Coronavirus"
This reverts commit 060843860f
.
* Revert "Cleanup/typing fixes"
This reverts commit 659b79e75a
.
* Define entity attributes as entity class variables (attr alternative)
* Example coronavirus
* Example nut
* Example verisure
* Mark private
* Cleanup after all reverting/cherrypicking/merging
* Implement all entity properties
* Update coronavirus example
* Update nut example
* Update verisure example
* Lets not talk about this one...
* Fix multiple class attribute
2021-05-22 09:13:50 -07:00
Ruslan Sayfutdinov
391b2f8ccd
Add missing return type in Core constructors ( #50884 )
2021-05-20 18:53:29 +03:00
Erik Montnemery
1ea0d8ae02
Correct trace of condition actions ( #50800 )
2021-05-17 16:54:17 -07:00
Ruslan Sayfutdinov
6b38adaa3d
Downgrade setuptools to fix CI ( #50734 )
2021-05-16 20:36:23 -07:00
Ville Skyttä
ed10856cc4
UpCloud API and typing update ( #50624 )
2021-05-14 21:49:41 -07:00
Martin Hjelmare
e32dc306e1
Fix oauth2 helper user step typing ( #50618 )
2021-05-14 23:39:14 +02:00
Erik Montnemery
bcd8f43e7b
Update light intents to check supported_color_modes ( #50625 )
2021-05-14 14:23:29 -07:00
Ruslan Sayfutdinov
0cb08f9516
Add missing type hints in entity_platform ( #50453 )
2021-05-12 16:28:44 +02:00
Erik Montnemery
b35f229674
Include _StopScript.__cause__ in trace ( #50441 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-05-11 22:27:11 -07:00
Martin Hjelmare
7c4893cbb1
Fix event action return value typing ( #50353 )
...
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
2021-05-11 16:23:59 +02:00
Ruslan Sayfutdinov
ce15f28642
Add missing type hints in http component ( #50411 )
2021-05-10 14:30:47 -07:00
Ville Skyttä
b89c53f759
Type hint device registry identifiers as set of str 2-tuples ( #50355 )
...
* Type hint device registry identifiers as set of str 2-tuples
* Fix airly test
* Really fix airly test, add another migration test
2021-05-10 12:13:45 +02:00
Franck Nijhof
44383f25ce
Clean up pylint comments ( #49334 )
2021-05-05 08:56:50 +02:00
Franck Nijhof
96f69fb9fb
Finalize clean up connection classes ( #49895 )
2021-05-04 20:08:51 +02:00
Franck Nijhof
efb1bb08a4
Add small async_get_current_platform helper method ( #50014 )
2021-05-03 16:46:42 +02:00
Franck Nijhof
378cee01b4
Add typing to async_register_entity_service ( #50015 )
2021-05-03 14:22:38 +02:00
Ville Skyttä
ddd7e79ee9
Improve device registry internal typing ( #49924 )
2021-05-01 12:33:31 -10:00
Franck Nijhof
1b5596b4c2
Remove ServiceCallType alias from codebase ( #49844 )
2021-05-02 00:15:27 +02:00
Ville Skyttä
59f32f7c9c
Make device info a TypedDict ( #49670 )
2021-04-30 23:21:39 +02:00
Ruslan Sayfutdinov
f53284b200
Make CoordinatorEntity generic ( #49854 )
2021-04-30 13:24:27 -07:00
Ville Skyttä
a19f757120
Allow str 1..n-tuples in device registry identifier type hints ( #49864 )
...
This reflects current practice, but the intent has been to have them as
2-tuples, and a future change is likely to start enforcing that (again).
Refs https://github.com/home-assistant/core/pull/49670#discussion_r622344872
2021-04-30 08:56:55 +02:00
Franck Nijhof
c68b259bd3
Cleanup of unused connection_class logic ( #49865 )
...
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
Ruslan Sayfutdinov
183220008d
Rename FlowResultDict to FlowResult ( #49847 )
2021-04-29 13:40:51 +02:00
Ruslan Sayfutdinov
0301706fc6
Define AddEntitiesCallback type ( #49812 )
2021-04-29 12:28:14 +02:00
Ruslan Sayfutdinov
5008c27e7a
Relax type annotation for DataUpdateCoordinator data ( #49827 )
2021-04-28 18:31:08 -10:00
Erik Montnemery
d2fd504442
Limit precision when stringifying float states ( #48822 )
...
* Limit precision when stringifying float states
* Add test
* Fix typing
* Move StateType
* Update
* Move conversion to entity helper
* Address review comments
* Tweak precision
* Tweak
* Make _stringify_state an instance method
2021-04-27 21:48:24 +02:00
J. Nick Koston
3fa8ffa731
Enable mccabe complexity checks in flake8 ( #49616 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +02:00
Marc Mueller
f1d48ddfe3
Update pylint to 2.8.0 ( #49637 )
2021-04-24 14:39:24 -10:00
jan iversen
49c23bad29
Revert "Remove HomeAssistantType from typing.py as it is no...2 ( #49617 )
...
This reverts commit 39cb22374d
.
Added comment that HomeAssistantType is not to be used, but only
kept in order not to break custom components.
2021-04-24 09:10:07 -10:00
jan iversen
39cb22374d
Remove HomeAssistantType from typing.py as it is no longer used. ( #49593 )
2021-04-23 11:08:58 +02:00
Erik Montnemery
d28b959a09
Improve sun condition trace ( #49551 )
2021-04-22 16:46:27 -07:00
Paulus Schoutsen
1016d4ea28
Support trigger-based template binary sensors ( #49504 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-22 14:54:28 -07: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