Commit graph

467 commits

Author SHA1 Message Date
GitHub Action
d99548fc04 [ci skip] Translation update 2022-01-10 00:14:49 +00:00
Marc Mueller
1b32385ab2
Use const imports [a-e] () 2022-01-05 16:44:13 +01:00
epenet
9e16f87ddc
Add init type hints [b-c] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 17:05:18 +01:00
GitHub Action
5fefb5985f [ci skip] Translation update 2021-12-18 00:13:26 +00:00
Michael
b68a2747f3
Use relative imports [A-H] () 2021-12-13 20:03:01 +01:00
GitHub Action
ecdb18eb0a [ci skip] Translation update 2021-12-06 00:13:37 +00:00
Franck Nijhof
cf371ea8dd
Remove deprecated base entity classes ()
* Remove deprecated base entity classes

* Clean up tests
2021-12-05 13:53:52 +01:00
Marvin Wichmann
707fe67c00
Move StrEnum to homeassistant.backports and move Platform to homeassistant.const ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-03 09:31:17 +01:00
Erik Montnemery
0e3bc21d54
Teach state and numeric_state conditions about entity registry ids () 2021-12-02 14:55:12 -08:00
Erik Montnemery
36734972f0
Teach numeric state trigger about entity registry ids () 2021-12-02 09:45:40 -08:00
Erik Montnemery
c85bb27d0d
Teach state trigger about entity registry ids ()
* Teach state trigger about entity registry ids

* Tweak

* Add tests

* Tweak tests

* Fix tests

* Resolve entity ids during config validation

* Update device_triggers

* Fix mistake

* Tweak trigger validator to ensure we don't modify the original config

* Add index from entry id to entry

* Update scaffold

* Pre-compile UUID regex

* Address review comment

* Tweak mock_registry

* Tweak

* Apply suggestion from code review
2021-12-02 14:26:45 +01:00
GitHub Action
de792e3af2 [ci skip] Translation update 2021-12-02 00:13:02 +00:00
Franck Nijhof
98ce12c6ee
Migrate cover device classes to StrEnum () 2021-11-30 15:37:34 -08:00
GitHub Action
2918e2d7d0 [ci skip] Translation update 2021-11-29 00:13:08 +00:00
Erik Montnemery
caf5ee2fab
Remove optional validation when creating conditions () 2021-11-28 14:54:07 +01:00
GitHub Action
3af54d96c7 [ci skip] Translation update 2021-11-28 00:14:19 +00:00
GitHub Action
d3c020325b [ci skip] Translation update 2021-11-25 00:13:33 +00:00
GitHub Action
f00effaba2 [ci skip] Translation update 2021-11-13 00:11:56 +00:00
Oliver Gruß
eec84ad71e
Mqtt cover toggle add stop function ()
* Change existing toggle to add new function

* Fixed using old property method to using actual protected variable.

* Adding service tests to new cover toggle function

* Working on comments from Pull Request 59233

* Adjust existing tests to fit new fake cover setup

* MockCover is calling state method of MockEntity but should call it from CoverEntity

* using different entity to get back test coverage
2021-11-10 09:03:20 +01:00
GitHub Action
86b12af3dc [ci skip] Translation update 2021-11-10 00:17:39 +00:00
Erik Montnemery
23fad60769
Don't use template in cover device condition () 2021-11-09 12:43:21 +01:00
GitHub Action
e35b83081e [ci skip] Translation update 2021-11-08 00:12:31 +00:00
GitHub Action
4e419d8c6f [ci skip] Translation update 2021-11-01 00:13:04 +00:00
Marc Mueller
2b72b7b7b9
Use assignment expressions 09 () 2021-10-17 20:19:56 +02:00
Marc Mueller
5048bad050
Use assignment expressions 05 () 2021-10-17 19:56:00 +02:00
GitHub Action
10b62370ff [ci skip] Translation update 2021-10-12 00:12:28 +00:00
Ville Skyttä
b10fc89a6b
Automation trigger info type hint improvements ()
* Make automation trigger info a TypedDict

* zwave_js trigger type hint fixes

* Remove redundant automation trigger info field presence checks

* Use async_initialize_triggers in mqtt and tasmota device_trigger tests
2021-09-04 02:25:51 +02:00
Ville Skyttä
0095c6baeb
Improve device trigger type hinting () 2021-08-22 20:32:50 +02:00
Ville Skyttä
debc6d632c
Improve device condition type hinting () 2021-08-20 22:21:40 +02:00
Ville Skyttä
4bb2c6e00f
Improve device action type hinting ()
* Improve device action type hinting

* More precise _async_get_automations type hints

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-20 07:13:25 +03:00
GitHub Action
ba93bda3ad [ci skip] Translation update 2021-08-05 00:34:46 +00:00
GitHub Action
8c5620e74b [ci skip] Translation update 2021-08-02 03:40:04 +00:00
Franck Nijhof
0b44265232
Add description classes to entity components ()
* Add description classes to entity components

* An -> A

* Add StateVacuumEntityDescription
2021-07-27 00:22:21 +02:00
Franck Nijhof
7947946793
Type entry setup/unload for entity components () 2021-06-17 10:10:26 +02:00
Erik Montnemery
59ef55c34f
Improve editing of device conditions referencing non-added cover () 2021-06-14 14:34:59 +02:00
Erik Montnemery
b8669bf4c1
Improve editing of device actions referencing non-added cover () 2021-06-12 21:40:32 +02:00
Erik Montnemery
76c3058d15
Rename device trigger base schema to DEVICE_TRIGGER_BASE_SCHEMA () 2021-06-10 19:11:38 +02:00
Erik Montnemery
c1bc99890d
Improve editing of device triggers referencing non-added cover () 2021-06-10 12:46:28 +02:00
GitHub Action
c81df50191 [ci skip] Translation update 2021-06-06 00:19:43 +00:00
GitHub Action
7f6e20dcbc [ci skip] Translation update 2021-06-03 00:26:58 +00:00
Erik Montnemery
04e9acc20a
Simplify device condition code () 2021-05-31 09:47:30 +02:00
Erik Montnemery
489c73b4da
Simplify device action code () 2021-05-31 09:47:15 +02:00
Franck Nijhof
255e13930c
Define CoverEntity entity attributes as class variables ()
* Define CoverEntity entity attributes as class variables

* Fix supported features
2021-05-29 14:35:02 +02:00
tkdrob
028a07d86f
Wrap up selectors ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
Franck Nijhof
eccefd154a
Extend targets for entity component services () 2021-05-17 14:06:50 +02:00
Marc Mueller
c07646db5d
Update typing syntax ()
* Update typing syntax

* Replace typing imports with ones from collections where possible

* Changes after review
2021-04-20 17:40:41 +02:00
HomeAssistant Azure
8e6238ff61 [ci skip] Translation update 2021-04-08 00:03:23 +00:00
Erik Montnemery
b3b0904b94
Simplify device trigger code () 2021-03-30 13:54:27 +02:00
Franck Nijhof
855b68faa1
Remove HomeAssistantType alias from entity components - Part 1 () 2021-03-29 13:24:36 -10:00
Erik Montnemery
c459789c09
Add 'for' to cover device triggers () 2021-03-29 13:57:30 -07:00