Marc Mueller
26a599ad11
Use PEP 695 for function annotations (1) ( #117658 )
2024-05-18 11:45:54 +02:00
Jan Bouwhuis
986df70fe3
Refactor group setup ( #116317 )
...
* Refactor group setup
* Add @callback decorator and remove commented out code
* Keep set, add default on state
2024-04-28 16:32:17 +02:00
vexofp
8ba1340c2e
Clarify cover toggle logic; prevent opening when already open ( #107920 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-04-18 14:58:16 +02:00
Marc Mueller
816ce116bf
Remove unnecessary functools.cached_property backport ( #114239 )
2024-04-04 11:24:26 +02:00
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01:00
J. Nick Koston
c3b5e819c5
Fix group loading too late resulting in incorrect state ( #113262 )
2024-03-13 19:18:15 -10:00
Marc Mueller
ff3a801936
Add empty line after module docstring [a-d] ( #112697 )
2024-03-08 14:51:32 +01:00
vexofp
3c53693fe3
Prevent toggle from calling stop on covers which do not support it ( #106848 )
...
* Prevent toggle from calling stop on covers which do not support it
* Update homeassistant/components/cover/__init__.py
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-01-09 12:32:27 +01:00
Erik Montnemery
c805ea7b4f
Include deprecated constants in wildcard imports ( #107114 )
2024-01-05 11:46:45 +01:00
J. Nick Koston
7051f28547
Add deprecation warning for cover supported features when using magic numbers ( #106618 )
2023-12-29 08:34:08 +01:00
J. Nick Koston
4ee961cd51
Add support for attribute caching to the cover platform ( #106268 )
2023-12-23 08:03:44 -10:00
Robert Resch
9830f77e9e
Deprecate deprecated cover constants ( #106098 )
2023-12-20 18:04:44 +01:00
Erik Montnemery
104bcc64b7
Allow inheriting base component entity descriptions in frozen dataclasses ( #105512 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-15 23:33:50 -10:00
Erik Montnemery
d1afcd773f
Revert "Cache entity properties that are never expected to change in the base class" ( #100422 )
...
Revert "Cache entity properties that are never expected to change in the base class (#95315 )"
This reverts commit 042776ebb82924d39ab706f9f3907967a2730eb5.
2023-09-15 11:25:24 +02:00
J. Nick Koston
042776ebb8
Cache entity properties that are never expected to change in the base class ( #95315 )
2023-09-14 17:48:48 -05:00
Franck Nijhof
30058297cf
Migrate backported StrEnum to built-in StrEnum ( #97101 )
2023-07-23 23:19:24 +02:00
Marc Mueller
45b4b0e990
Import ParamSpec
from typing [Py310] ( #86413 )
...
* Import ParamSpec from typing [Py310]
* Update additional imports
2023-01-23 07:28:43 +01:00
Franck Nijhof
c507ad86d1
Remove str from cover device class ( #83396 )
...
* Remove str from cover device class
* Fix tests
2022-12-06 16:13:29 +01:00
epenet
34607d4410
Enforce CoverEntityFeature ( #82457 )
...
* Enforce CoverEntityFeature
* Adjust pylint
2022-11-22 07:09:19 +01:00
epenet
17573196c8
Adjust type hints for CoverEntityFeature ( #82238 )
2022-11-17 08:39:44 +01:00
epenet
a91abebea8
Use IntFlag for EntityFeature ( #81903 )
2022-11-16 12:43:17 +01:00
epenet
64988521bb
Make use of generic EntityComponent (part 2) ( #78494 )
2022-09-17 18:18:53 +02:00
epenet
e874ba2a42
Improve CoverEntity typing ( #73903 )
2022-06-23 16:48:49 +02:00
Franck Nijhof
330c931067
Add EntityFeature enum to Cover ( #69088 )
2022-04-01 09:38:21 -07:00
epenet
9e16f87ddc
Add init type hints [b-c] ( #63100 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 17:05:18 +01: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
Marvin Wichmann
707fe67c00
Move StrEnum to homeassistant.backports and move Platform to homeassistant.const ( #60880 )
...
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
Franck Nijhof
98ce12c6ee
Migrate cover device classes to StrEnum ( #60655 )
2021-11-30 15:37:34 -08:00
Oliver Gruß
eec84ad71e
Mqtt cover toggle add stop function ( #59233 )
...
* 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
Marc Mueller
5048bad050
Use assignment expressions 05 ( #57785 )
2021-10-17 19:56:00 +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
Franck Nijhof
7947946793
Type entry setup/unload for entity components ( #51912 )
2021-06-17 10:10:26 +02:00
Franck Nijhof
255e13930c
Define CoverEntity entity attributes as class variables ( #51236 )
...
* Define CoverEntity entity attributes as class variables
* Fix supported features
2021-05-29 14:35:02 +02: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
J. Nick Koston
aa250c2b61
Update cover to use async_add_executor_job ( #41456 )
2020-10-08 09:21:47 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Martin Hjelmare
39431c0764
Add required features to cover service registration ( #35073 )
...
* Fix typing in component service method
* Add required features to cover service registration
* Fix template cover tilt features
* Delint template cover tests
2020-05-03 23:21:12 +02:00
Erik Montnemery
8c5c963b96
Rename CoverDevice to CoverEntity ( #34595 )
2020-04-25 18:07:15 +02:00
Franck Nijhof
7653dc947a
Enable pylint unnecessary-pass ( #33650 )
...
* Enable pylint unnecessary-pass
* Process review suggestions
* Fix smhi tests
2020-04-05 10:33:07 +02:00
J. Nick Koston
0148708613
Add DEVICE_CLASS_GATE ( #33074 )
...
Gates are found outside of a structure and are typically part of a fence.
2020-03-21 11:17:06 -07:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ( #31281 )
...
* Fix callback and async
* Fix a return
* Fix test
* Fix mqtt tests
* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Paulus Schoutsen
9aa02e35a7
Entity Component to no longer generate automatic groups ( #23789 )
2020-01-07 17:30:53 +01:00
Bas Nijholt
a3b605bb7d
use isort to sort imports according to PEP8 for cover ( #29629 )
2019-12-08 22:28:00 +05:30
Paulus Schoutsen
32e04e1dce
Lint
2019-12-02 22:08:19 -08:00
Paulus Schoutsen
02d9ed5e36
Do not select all entities when omitting entity ID in service call ( #29178 )
...
* Do not select all entities when omitting entity ID
* Address comments Matthew
* Require either area_id or entity_id
* Fix tests
* Fix test
2019-12-02 16:23:12 -08:00
Paulus Schoutsen
d1aa0cea97
Move intent registration to own integration ( #29280 )
...
* Move intent registration to own integration.
* Lint
2019-12-01 14:12:57 -08:00
Ville Skyttä
d88ca0f5cb
Lint exclusions ( #28655 )
...
* Remove malformed pylint disable markers
* Remove some unused imports
* Remove some unneeded lint exclusions
* Remove more unneeded lint exclusions
* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
Ville Skyttä
381d423fec
Upgrade mypy to 0.740 ( #27913 )
...
* Upgrade mypy to 0.740
http://mypy-lang.blogspot.com/2019/10/mypy-0740-released.html
* Type hint additions
* Type fixes
* Remove no longer needed type ignores and casts
* Disable untyped definition checks in bunch of files
2019-10-19 11:35:57 -07:00
Ville Skyttä
54242cd65c
Type hint additions ( #26765 )
2019-09-20 08:23:34 -07:00
Ville Skyttä
b738082dad
Type check various base components ( #25878 )
...
* Type check various component base classes, disabling bunch of checks for now
* Type hint fixes
* Help mypy out some
* Add more type hints
2019-08-11 20:38:18 -07:00