Commit Graph

693 Commits (a1d554d1cb0cd65a836a177bac422c297cd744b7)

Author SHA1 Message Date
epenet a91abebea8
Use IntFlag for EntityFeature (#81903) 2022-11-16 12:43:17 +01:00
Marc Mueller 0c8eeaa643
Update mypy to 0.990 (#81783)
* Update mypy to 0.990

* Remove type ignore - overriding attr with property (13475)

* Remove type ignores - hasattr (13544)

* Adjust type ignore - assignment (13549)

* New error code - type-abstract (13785)

* Disable annotation-unchecked (13851)
2022-11-08 14:41:39 +01:00
GitHub Action aca340de1c [ci skip] Translation update 2022-10-10 00:34:37 +00:00
Franck Nijhof 2b27cfdabb
Set system & entity integration types (#79593) 2022-10-04 10:36:42 -04:00
epenet 24c26dc032
Use unit_conversion in components (#79204)
* Use unit_conversion in components

* Two more
2022-09-28 16:05:31 +02:00
epenet 64988521bb
Make use of generic EntityComponent (part 2) (#78494) 2022-09-17 18:18:53 +02:00
GitHub Action 23faf8024e [ci skip] Translation update 2022-09-14 00:28:24 +00:00
epenet 7a3ca8278d
Expose climate constants at the top level (#78018)
* Expose climate constants at the top level

* Add new climate enums

* Add new climate enums

* Import new enums

* Adjust ClimateEntity

* Adjust pylint

* Fix mypy

* Revert "Fix mypy"

This reverts commit 3dbe2fab01.

* Revert "Adjust pylint"

This reverts commit b19b085b22.

* Revert "Adjust ClimateEntity"

This reverts commit 6a822c58f1.

* Revert "Import new enums"

This reverts commit 7d70007c60.

* Revert "Add new climate enums"

This reverts commit dcd7716106.

* Revert "Add new climate enums"

This reverts commit a9aaa08a1c.
2022-09-09 16:42:01 +02:00
GitHub Action ff3fd4c29d [ci skip] Translation update 2022-08-16 00:30:51 +00:00
Marc Mueller 19cf6089d6
Use TriggerActionType [core, a-d] (#76803) 2022-08-15 17:44:12 +02:00
GitHub Action bec8e544f4 [ci skip] Translation update 2022-08-14 00:25:47 +00:00
GitHub Action f11fbf2989 [ci skip] Translation update 2022-08-08 00:22:41 +00:00
David Barshow c24c6b38b1
Support climate reproduce state fan_mode (#74317)
climate reproduce state fan_mode support
2022-07-02 13:04:38 -07:00
epenet fb53e39f05
Adjust device_automation type hints in core platforms 1/3 (#72209) 2022-05-23 16:03:21 +02:00
GitHub Action ceb8bb4745 [ci skip] Translation update 2022-05-21 00:22:49 +00:00
Franck Nijhof 7d2deae592
Clean up use of deprecated async_get_registry methods (#72001) 2022-05-17 13:40:19 +02:00
GitHub Action 37f81b261d [ci skip] Translation update 2022-05-16 00:24:28 +00:00
GitHub Action 348016dbbf [ci skip] Translation update 2022-04-29 00:22:21 +00:00
epenet a75daab33f
Adjust set_hvac_mode type hint in ClimateEntity (#70658)
* Adjust set_hvac_mode type hint in ClimateEntity

* Remove override
2022-04-25 13:16:02 +02:00
epenet d22a679262
Adjust hvac_modes type hint in ClimateEntity (#70657)
* Adjust hvac_modes type hint in ClimateEntity

* Adjust tuya
2022-04-25 13:15:08 +02:00
Franck Nijhof bfc82b030f
Replace Climate CURRENT_HVAC_* constants with HVACAction enum (#70319) 2022-04-20 13:41:05 -07:00
Franck Nijhof a22f36178f
Replace Climate HVAC_MODE_* constants with HVACMode enum (#70286)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-20 13:20:53 +02:00
Franck Nijhof d1f4b7a3d9
Fix climate HVAC device condition (#69908) 2022-04-12 15:31:59 +02:00
J. Nick Koston b92fc42f0f
Exclude static climate attributes from being recorded in the database (#69158) 2022-04-02 20:48:32 -07:00
Franck Nijhof 8fc55b71c5
Add EntityFeature enum to Climate (#69077) 2022-04-01 09:41:49 -07:00
Franck Nijhof 963d161f72
Update core services files with new selectors (#68810)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-03-28 17:17:16 -07:00
GitHub Action dc31f420ed [ci skip] Translation update 2022-03-12 00:17:47 +00:00
GitHub Action 66d757115c [ci skip] Translation update 2022-03-11 00:21:48 +00:00
jan iversen 0d8ff3d724
Add codeowner to internal integrations that are without (#67286) 2022-02-28 09:06:16 +01:00
GitHub Action 6364e81be5 [ci skip] Translation update 2022-02-24 00:17:55 +00:00
GitHub Action 2da4d280b2 [ci skip] Translation update 2022-02-06 00:17:31 +00:00
GitHub Action ca7d4234e1 [ci skip] Translation update 2022-01-31 00:14:28 +00:00
GitHub Action 5e62ff95b9 [ci skip] Translation update 2022-01-29 00:13:03 +00:00
GitHub Action 04a2227f4b [ci skip] Translation update 2022-01-19 00:13:35 +00:00
J. Nick Koston c16794968f
Consistently type/coerce climate humidity to be an int (#61456) 2022-01-06 02:09:43 +01:00
Marc Mueller 048d8f9263
Add strict typing to `core.py` (6) - Implicit reexport (#63345) 2022-01-04 19:51:19 +01:00
GitHub Action 5e750a0625 [ci skip] Translation update 2021-12-11 00:12:44 +00:00
Franck Nijhof cf371ea8dd
Remove deprecated base entity classes (#61006)
* Remove deprecated base entity classes

* Clean up tests
2021-12-05 13:53:52 +01:00
Erik Montnemery 0e3bc21d54
Teach state and numeric_state conditions about entity registry ids (#60841) 2021-12-02 14:55:12 -08:00
Erik Montnemery 36734972f0
Teach numeric state trigger about entity registry ids (#60835) 2021-12-02 09:45:40 -08:00
Erik Montnemery c85bb27d0d
Teach state trigger about entity registry ids (#60271)
* 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
GitHub Action 2918e2d7d0 [ci skip] Translation update 2021-11-29 00:13:08 +00:00
Erik Montnemery caf5ee2fab
Remove optional validation when creating conditions (#60481) 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 72b0eb719e [ci skip] Translation update 2021-11-20 00:12:27 +00:00
GitHub Action f0c9f443d1 [ci skip] Translation update 2021-11-15 00:12:46 +00:00
GitHub Action 34bc1298aa [ci skip] Translation update 2021-11-11 00:15:23 +00:00
GitHub Action e35b83081e [ci skip] Translation update 2021-11-08 00:12:31 +00:00
GitHub Action 30fb619095 [ci skip] Translation update 2021-10-24 00:12:57 +00:00
GitHub Action 4634b65924 [ci skip] Translation update 2021-10-21 00:12:43 +00:00
Marc Mueller 2b72b7b7b9
Use assignment expressions 09 (#57790) 2021-10-17 20:19:56 +02:00
Franck Nijhof 6a72af63c2
Refactor Tuya climate platform (#57609) 2021-10-13 20:29:11 +02:00
Ville Skyttä b10fc89a6b
Automation trigger info type hint improvements (#55402)
* 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 (#54907) 2021-08-22 20:32:50 +02:00
Marc Mueller 69e413ac1e
Update pylint to 2.10.1 (#54963)
* Update pylint to 2.10.0

* useless-suppression

* Consider-using-tuple

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Use dict.items()

* Add pylint disable

* Use pylint 2.10.1

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-08-21 10:41:23 +02:00
Ville Skyttä 4bb2c6e00f
Improve device action type hinting (#54850)
* 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
Allen Porter 1c20eb3263
Skip 'None' values when restoring climate scenes (#53484) 2021-07-28 09:16:23 +02:00
Franck Nijhof 0b44265232
Add description classes to entity components (#53521)
* Add description classes to entity components

* An -> A

* Add StateVacuumEntityDescription
2021-07-27 00:22:21 +02:00
Marc Mueller a56485a8c5
Revert new unit types (#53226) 2021-07-20 14:13:51 +02:00
Marc Mueller 71a8ae3016
Add new unit types for better type checking (#53124)
* Add new unit types
* Update helper functions
* Update components
* Update lcn climate
2021-07-18 14:43:47 +02:00
GitHub Action 0c5ce9cac2 [ci skip] Translation update 2021-07-07 00:11:57 +00:00
Erik Montnemery 44b44b5bd6
Enable basic type checking for climate (#52470)
* Enable basic type checking for climate

* Tweak
2021-07-03 16:06:12 +01:00
SgtBatten bd399d17a7
Add support for 4th fan speed in izone A/C systems (#51969)
* Add TOP fan speed

My a/c is 4 speed and the top speed is reported as top or boost. 

i.e it supports: low med high boost auto

* add support for top fan speed

Aircons with 4 fan speeds. i.e low, med, high, top/boost

* Update manifest.json

Bump version to 1.1.5

* Update climate.py

* Bump Izone to 1.1.5

* Update climate.py

* fix isort failure

* Use v1.1.6

Co-authored-by: Penny Wood <Swamp-Ig@users.noreply.github.com>
Co-authored-by: Swamp-Ig <github@ninjateaparty.com>
2021-06-27 21:13:26 +02:00
Franck Nijhof 7947946793
Type entry setup/unload for entity components (#51912) 2021-06-17 10:10:26 +02:00
Erik Montnemery 59a3e0f4dc
Improve editing of device conditions referencing non-added HVAC (#51832) 2021-06-15 02:23:13 +02:00
Erik Montnemery ba6b527d61
Improve editing of device actions referencing non-added HVAC (#51706)
* Improve editing of device actions referencing non-added HVAC

* Improve test coverage
2021-06-11 11:13:55 +02:00
Erik Montnemery 76c3058d15
Rename device trigger base schema to DEVICE_TRIGGER_BASE_SCHEMA (#51719) 2021-06-10 19:11:38 +02:00
Erik Montnemery 04e9acc20a
Simplify device condition code (#51266) 2021-05-31 09:47:30 +02:00
Erik Montnemery 489c73b4da
Simplify device action code (#51263) 2021-05-31 09:47:15 +02:00
Franck Nijhof 7dff4d6ad7
Define climate entity attributes as class variables (#51006) 2021-05-27 17:39:43 +02:00
tkdrob c0656878db
Normalize async_setup_entry (#51161) 2021-05-27 15:56:20 +02:00
tkdrob 028a07d86f
Wrap up selectors (#50794)
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 (#50760) 2021-05-17 14:06:50 +02: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
HomeAssistant Azure 23dd57a562 [ci skip] Translation update 2021-04-09 00:03:15 +00:00
Erik Montnemery b3b0904b94
Simplify device trigger code (#48507) 2021-03-30 13:54:27 +02:00
Franck Nijhof 855b68faa1
Remove HomeAssistantType alias from entity components - Part 1 (#48467) 2021-03-29 13:24:36 -10:00
Erik Montnemery 4fbc3da196
Validate device action schemas once (#48351) 2021-03-26 08:46:26 +01:00
Erik Montnemery 72281f4718
Validate device trigger schemas once (#48319) 2021-03-26 08:09:21 +01:00
Philip Allgaier 286217f771
Fix condition extra fields for climate and humidifier (#48184) 2021-03-22 14:59:40 +01: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
HomeAssistant Azure c11b85af2f [ci skip] Translation update 2021-03-16 00:04:36 +00:00
Franck Nijhof ea4bbd771f
Add service names to previously enriched services (#46929)
Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-02-23 14:10:13 +01:00
Franck Nijhof 0f4433ce14
Add advanced selectors to Climate service definitions (#46736) 2021-02-18 16:23:10 +01:00
Franck Nijhof ae643bfaf3
Add selectors to Climate service definitions (#46632) 2021-02-18 12:25:55 +01:00
Paulus Schoutsen 959ed6d077 Update translations 2021-02-03 11:46:49 +01:00
HomeAssistant Azure 9a21421807 [ci skip] Translation update 2020-11-15 00:03:48 +00:00
HomeAssistant Azure b71e28dfac [ci skip] Translation update 2020-11-04 00:13:14 +00:00
HomeAssistant Azure ce16ff27ef [ci skip] Translation update 2020-11-02 00:03:44 +00:00
HomeAssistant Azure ed232ac733 [ci skip] Translation update 2020-10-24 00:05:17 +00:00
HomeAssistant Azure 59a3add24a [ci skip] Translation update 2020-10-19 00:03:28 +00:00
HomeAssistant Azure 39adf14079 [ci skip] Translation update 2020-10-17 00:06:00 +00:00
HomeAssistant Azure 80522f1bdc [ci skip] Translation update 2020-10-11 00:03:37 +00:00
HomeAssistant Azure 6ae12c3faf [ci skip] Translation update 2020-10-10 00:05:05 +00:00
J. Nick Koston 9ccebdb8d5
Refactor group to extend domains that can be grouped (#40607)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-30 09:13:53 -05:00
HomeAssistant Azure e9e17122e7 [ci skip] Translation update 2020-09-28 00:03:28 +00:00
Ville Skyttä 5e90a4d000
Use more state attribute name constants (#40428) 2020-09-21 23:03:39 +02:00