Commit Graph

261 Commits (df55d198c85065583bba25e499ceab2499b47911)

Author SHA1 Message Date
epenet fac746c974
Improve recorder type hints in tests ()
* Improve recorder type hints in tests

* Add comment

* Adjust comment
2023-02-10 11:11:39 +01:00
Franck Nijhof 6551eb168d
Add common area, device, entity and issue registry test fixtures () 2023-02-08 16:28:44 +01:00
epenet a4c4f77f73
Add more fixtures to pylint plugin () 2023-02-08 10:51:09 +01:00
epenet 8f8bdac451
Fix namespace issue in pylint plugin () 2023-02-07 13:07:21 +01:00
epenet ef6798e854
Add caplog to known fixtures in pylint plugin () 2023-02-07 11:34:02 +01:00
epenet ea32a2ae63
Check return and mqtt fixtures typing in tests ()
Check return type and mqtt fixtures typing in tests
2023-02-07 10:21:54 +01:00
epenet de807fa782
Ensure __init__ return type is None ()
* Ensure __init__ return type is None

* Remove hass-constructor plugin

* Simplify

* Replace dict with list

* Cleaup pyproject.toml

* Move is_method outside loop

* Adjust loop
2023-02-06 16:25:12 +01:00
epenet f6c76372ce
Ensure hass is typed ()
* Ensure hass is typed

* Adjust pilight

* Adjust homeassistant scene

* Adjust hassio

* Adjust gree

* Adjust google_maps

* Adjust energyzero

* Adjust harmony

* Adjust mobile_app
2023-02-04 12:52:59 -05:00
epenet 7af86fe130
Improve notify type hints () 2023-01-26 16:23:03 +01:00
Max R 156c815499
Run `flake8` on more files ()
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
2023-01-16 20:53:14 +01:00
epenet 1deb4c68f3
Adjust diagnostics return types ()
* Adjust diagnostics return types

* Replace dict with Mapping
2023-01-13 09:17:54 +01:00
Martin Hjelmare 8805a7e555
Fix humidifier enforce type hints () 2023-01-05 00:58:08 +01:00
epenet d6fc2d9452
Prevent use of deprecated units ()
* Prevent use of deprecated units

* Adjust obsolete util

* More units

* Add FREQUENCY

* Adjust pylint ignore

* Add ELECTRIC (current/potential)

* Add TIME

* Adjust units
2022-12-21 15:24:11 +01:00
Franck Nijhof 9864d9e0d2
Remove str from sensor device class () 2022-12-08 19:04:58 +01:00
Franck Nijhof d715aa6867
Modernize Image Processing typing ()
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-12-06 16:35:40 +01:00
Franck Nijhof c507ad86d1
Remove str from cover device class ()
* Remove str from cover device class

* Fix tests
2022-12-06 16:13:29 +01:00
Franck Nijhof ba0d6fe611
Enforce NumberDeviceClass in number entities () 2022-12-06 14:58:22 +01:00
Franck Nijhof 647469f472
Remove str from media player device class ()
* Remove str from media player device class

* Adjust pylint plugin
2022-12-06 14:57:34 +01:00
Franck Nijhof cb69364ad2
Remove str from binary sensor device class () 2022-12-06 14:52:26 +01:00
Franck Nijhof 46caefca7b
Remove str from humidifier device class () 2022-12-06 14:51:23 +01:00
Franck Nijhof 8cdadd1552
Remove str from switch device class () 2022-12-06 14:50:44 +01:00
Franck Nijhof 91cf2e2792
Remove str from update device class () 2022-12-06 14:50:19 +01:00
epenet bf3c6e5f58
Enforce VacuumEntityFeature () 2022-11-22 07:27:27 +01:00
epenet 4134d722da
Enforce WaterHeaterEntityFeature () 2022-11-22 07:27:09 +01:00
epenet ab26ea06b9
Enforce UpdateEntityFeature () 2022-11-22 07:16:53 +01:00
epenet ff5f1aee53
Enforce SirenEntityFeature () 2022-11-22 07:16:29 +01:00
epenet 0cb3ec142e
Enforce RemoteEntityFeature () 2022-11-22 07:16:03 +01:00
epenet 6f05a74686
Enforce MediaPlayerEntityFeature () 2022-11-22 07:15:37 +01:00
epenet a225fc456f
Enforce LockEntityFeature () 2022-11-22 07:15:11 +01:00
epenet 7f1e1ed1d8
Enforce LightEntityFeature () 2022-11-22 07:14:47 +01:00
epenet d4bd9a0f7e
Enforce HumidifierEntityFeature () 2022-11-22 07:14:19 +01:00
epenet 12cb17620e
Enforce FanEntityFeature ()
* Enforce FanEntityFeature

* Adjust pylint
2022-11-22 07:13:54 +01:00
epenet 34607d4410
Enforce CoverEntityFeature ()
* Enforce CoverEntityFeature

* Adjust pylint
2022-11-22 07:09:19 +01:00
epenet 48cc3071bb
Enforce ClimateEntityFeature () 2022-11-22 07:08:53 +01:00
epenet 8b54a0679f
Enforce CameraEntityFeature () 2022-11-22 07:08:28 +01:00
epenet cec81e137c
Enforce AlarmControlPanelEntityFeature () 2022-11-21 22:58:36 +01:00
epenet 9d607c8bd5
Adjust type hints for WaterHeaterEntityFeature () 2022-11-17 15:51:55 +01:00
epenet ced16da576
Adjust type hints for VacuumEntityFeature () 2022-11-17 15:31:09 +01:00
epenet 3be750812d
Adjust type hints for UpdateEntityFeature () 2022-11-17 15:17:50 +01:00
epenet 295cd0143c
Adjust type hints for SirenEntityFeature () 2022-11-17 15:06:26 +01:00
epenet 9b9bdc725f
Adjust type hints for RemoteEntityFeature () 2022-11-17 15:06:16 +01:00
epenet 18e30e7c06
Adjust type hints for MediaPlayerEntityFeature () 2022-11-17 13:58:34 +01:00
epenet 8570d3aabe
Adjust type hints for LockEntityFeature () 2022-11-17 12:47:48 +01:00
epenet dd7bc7971f
Adjust type hints for LightEntityFeature () 2022-11-17 12:46:42 +01:00
epenet 2453f95b24
Adjust HumidifierEntity type hints () 2022-11-17 10:58:46 +01:00
epenet 1b80c66195
Adjust type hints for FanEntityFeature ()
* Adjust type hints for FanEntityFeature

* Adjust template default
2022-11-17 10:30:39 +01:00
epenet 17573196c8
Adjust type hints for CoverEntityFeature () 2022-11-17 08:39:44 +01:00
epenet 39ac2c1101
Adjust type hints for ClimateEntityFeature () 2022-11-16 21:17:50 +01:00
epenet f952b74b74
Adjust type hints for AlarmControlPanelEntityFeature () 2022-11-16 17:08:42 +01:00
epenet 5d78632d04
Adjust type hints for CameraEntityFeature () 2022-11-16 14:44:08 +01:00
epenet 0c79a9a33d
Adjust pylint for IMPERIAL_SYSTEM deprecation ()
* Adjust pylint for IMPERIAL_SYSTEM deprecation

* Use correct location

* Adjust components
2022-10-24 15:25:00 +02:00
epenet bff5d1123f
Deprecate CONF_UNIT_SYSTEM_*** constants ()
* Deprecate CONF_UNIT_SYSTEM_*** constants

* Adjust pylint plugin

* Add tests

* Remove single-use function

* Revert logic change

* Revert "Revert logic change"

This reverts commit 60959a0050.

* Tweak again
2022-10-14 16:50:04 +02:00
epenet 9c3b40dad1
Deprecate conversion utilities ()
* Deprecate utilities

* Deprecate distance and speed

* Add tests

* Adjust pylint

* Simplify temperature deprecation
2022-09-28 19:39:44 +02:00
epenet 4b813f2460
Adjust pylint plugin for tests directory ()
* Add module_name to parametrize

* Add tests for tests directory

* Apply patch from mib1185

* Adjust plugin to allow imports from component being tested
2022-09-19 14:27:21 +02:00
epenet 0dcbc85684
Adjust relative-import plugin for tests () 2022-09-19 12:57:07 +02:00
epenet 3941290edc
Force root import of const from other components ()
* Force root import of const from other components

* Add missing commit

* Add tests

* Add tests

* Apply suggestion

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Apply suggestion

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-09-14 14:07:57 +02:00
epenet b87cd926e7
Fix image-processing type hint () 2022-09-14 11:13:48 +02:00
epenet f1c7fb7866
Adjust pylint plugin for relative imports () 2022-09-14 00:11:57 +02:00
epenet 02c9541862
Improve type hints in mailbox () 2022-09-13 21:55:50 +02:00
epenet 458ddb6f4b
Improve type hints in image-processing () 2022-09-13 08:39:39 -04:00
epenet bad81c1bc9
Prevent use of deprecated media-player constants () 2022-09-13 14:20:15 +02:00
epenet 55e59b778c
Add type hints to TTS provider ()
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-09-12 23:29:55 +02:00
epenet 5e9c0399eb
Add STT checks to pylint plugin () 2022-09-12 18:58:06 +02:00
epenet 5f2567cd43
Use alphabetical order for platforms in pylint plugin () 2022-09-10 23:46:30 +02:00
epenet b369c2f54c
Deprecate SUPPORT_* constants for color_mode ()
* Deprecate SUPPORT_* constants for color_mode

* Simplify

Co-authored-by: Erik Montnemery <erik@montnemery.com>

Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-09-09 11:27:16 +02:00
epenet 7ff23506fe
Use new enums in cast ()
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-09-09 08:57:14 +02:00
epenet 23168434d5
Add pylint directory to black pre-commit ()
Add pylint to black CI
2022-09-08 09:14:58 +02:00
epenet 645f5e5ac1
Introduce new MediaPlayerState StrEnum ()
* Adjust media-player checks in pylint plugin

* Adjust media-player definitions

* Adjust cast signatures

* Adjust play_media signature

* Introduce MediaPlayerState

* Fix cast implementations

* Revert cast changes

* Update hass_enforce_type_hints.py

* Use set

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Fix tests

* Keep unused constants

* Fix test

* Revert tests

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-09-07 16:30:22 +02:00
epenet f71313ee1e
Adjust get_scanner pylint checks () 2022-09-07 10:58:54 +02:00
epenet 9fb0b3995c
Adjust pylint checks for notify get_service ()
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-09-07 09:44:15 +02:00
epenet 5de95663a9
Introduce new StrEnums in media player ()
* Introduce RepeatMode enum in media player
* Add MediaClass and MediaType
2022-09-06 18:47:34 +02:00
epenet e5ac50fc57
Add BaseNotificationService to pylint checks ()
* Add BaseNotificationService to pylint checks

* Remove comment
2022-09-06 12:18:29 +02:00
epenet 03b4d25564
Add notify get_service to pylint checks ()
Add notify get_service to pylint checks (take 3)
2022-09-06 12:18:15 +02:00
epenet 8ed689fede
Add new rule to enforce relative imports in pylint ()
* Add new rule to enforce relative imports in pylint

* Early return

* Adjust components
2022-08-29 08:55:32 +02:00
epenet 38ca74b547
Adjust pylint plugin for absolute/relative imports ()
* Adjust pylint plugin for absolute/relative imports

* Adjust components

* One more

* Adjust mqtt

* Adjust mqtt.DOMAIN import

* Adjust internal import

* Add tests for valid local component imports

* Adjust relative path check

* Fixes

* Fixes
2022-08-26 14:27:13 +02:00
epenet fb5a67fb1f
Add vacuum checks to pylint plugin () 2022-08-18 19:22:08 +02:00
epenet c7301a449b
Add switch checks to pylint plugin () 2022-08-18 14:48:23 +02:00
Erik Montnemery 60c8d95a77
Remove white_value support from light () 2022-08-18 08:21:05 -04:00
epenet 07ba3c1383
Add update checks to pylint plugin () 2022-08-18 13:27:05 +02:00
epenet 49c793b1a2
Add scene checks to pylint plugin () 2022-08-17 18:44:08 +02:00
epenet 27b5ebb9d3
Add RestoreSensor to sensor checks in pylint () 2022-08-17 18:43:28 +02:00
epenet fc6c66fe6c
Add RestoreEntity to button checks in pylint () 2022-08-17 18:42:35 +02:00
epenet ce07748979
Add water_heater checks to pylint plugin () 2022-08-17 17:50:00 +02:00
epenet 35d01d7939
Add RestoreNumber to number checks in pylint () 2022-08-17 16:58:42 +02:00
epenet eec0f3351a
Add weather checks to pylint plugin () 2022-08-17 16:27:47 +02:00
epenet 5736ba6230
Add remote checks to pylint plugin () 2022-08-16 19:24:00 +02:00
epenet 2630ff8fce
Add sensor checks to pylint plugin () 2022-08-16 19:22:15 +02:00
Marc Mueller 93630cf1f8
Add missing entry for `SOURCE_TYPE_*` to hass-imports plugin () 2022-08-16 11:17:10 +02:00
Marc Mueller 91005f4694
Update pylint plugin to use TriggerActionType () 2022-08-16 11:16:33 +02:00
Marc Mueller b8f83f6c70
Use BinarySensorDeviceClass instead of deprecated constants () 2022-08-16 07:40:33 +02:00
Marc Mueller c93d9d9a90
Move `AutomationActionType` to helpers.trigger () 2022-08-15 08:37:11 -04:00
epenet 6243f24b05
Add media-player checks to pylint plugin ()
* Add media-player checks to pylint plugin

* Fix invalid hints

* Add tests

* Adjust tests

* Add extra test

* Adjust regex

* Cleanup comment

* Move media player tests up
2022-08-15 09:48:03 +02:00
epenet 982d197ff3
Add number checks to pylint plugin ()
* Add number checks to pylint plugin

* Adjust ancestor checks

* Add tests

* Add comments in tests
2022-08-10 16:30:58 +02:00
epenet bd795be0e9
Cleanup device_class checks in pylint plugin () 2022-08-09 10:56:15 -04:00
epenet bcdf880364
Add siren checks to pylint plugin () 2022-08-09 10:55:52 -04:00
epenet 0ffdf9fb6e
Add device_tracker checks to pylint plugin () 2022-08-04 21:03:13 +02:00
epenet 3eafe13085
Improve UI in pylint plugin ()
* Adjust FlowResult result type

* Adjust tests

* Adjust return_type

* Use StrEnum for base device_class

* Add test for device_class

* Add and use SentinelValues.DEVICE_CLASS

* Remove duplicate device_class

* Cleanup return-type

* Drop inheritance check from device_class

* Add caching for class methods

* Improve tests

* Adjust duplicate checks

* Adjust tests

* Fix rebase
2022-08-02 00:03:52 +02:00
epenet 27ed3d324f
Replace object with enum for pylint sentinel ()
* Replace object with enum for pylint sentinel

* Use standard enum
2022-08-01 19:34:06 +02:00
epenet 1a40d400dc
Add function/property name to pylint message () 2022-08-01 14:09:47 +02:00
Marc Mueller 003fe9220e
Add protocol types for device_tracker `async_see` and `see` () 2022-07-29 00:27:47 +02:00
epenet 40ee7bab8f
Fix false-positive in pylint plugin () 2022-07-10 00:31:09 +02:00
epenet a1a887ddac
Add GeolocationEvent checks to pylint plugin () 2022-07-05 12:27:00 +02:00
epenet 2c171e30fa
Add ClimateEntity checks to pylint plugin ()
* Add ClimateEntity checks to pylint plugin

* Update pylint/plugins/hass_enforce_type_hints.py
2022-06-30 14:49:23 -07:00
epenet f80d522c6a
Add Camera checks to pylint plugin () 2022-06-30 21:50:57 +02:00
epenet 1bfd8b1a76
Add enforce_type_hints to vscode tasks () 2022-06-30 20:49:41 +02:00
epenet 781e4571b2
Add CalendarEntity checks to pylint plugin ()
* Add CalendarEntity checks to pylint plugin

* adjust air_quality ignore

* Mark state property as final
2022-06-30 19:00:34 +02:00
epenet 5167535b03
Add LightEntity type hint checks to pylint plugin () 2022-06-29 12:51:37 +02:00
epenet a6ef330b63
Add ButtonEntity to pylint checks () 2022-06-29 12:36:57 +02:00
epenet ebf21d1bd7
Add BinarySensorEntity to pylint checks () 2022-06-29 11:41:56 +02:00
epenet 28c1a5c09f
Enforce config-flow type hints for reauth step () 2022-06-28 10:52:41 +02:00
epenet c19a8ef8e0
Enforce flow-handler result type hint for step_* () 2022-06-28 10:08:36 +02:00
epenet 319ef38d34
Add AlarmControlPanelEntity to pylint checks () 2022-06-28 10:02:57 +02:00
epenet f9c83dd991
Add CoverEntity to pylint checks ()
* Add CoverEntity to pylint checks

* Avoid false positivies on device_class

* Adjust device_class handling

* Adjust device_class again using a singleton

* Adjust device_class (again)

* Simplify DEVICE_CLASS check

* Keep device_class in base class
2022-06-27 14:58:23 +02:00
epenet b185de0ac0
Add base Entity to pylint checks ()
* Add base entity properties

* Add special case of Mapping[xxx, Any]

* Add Mapping tests

* Add entity functions

* Adjust docstring

* Add update/async_update
2022-06-27 12:10:31 +02:00
epenet d19fc0622b
Add ToggleEntity to pylint fan checks () 2022-06-23 21:31:30 +02:00
epenet b17d4ac65c
Remove replicated async definitions in pylint plugin ()
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-06-22 23:51:40 +02:00
epenet 31af4b709e
Add FanEntity type hint checks to pylint plugin ()
* Add FanEntity type hint checks to pylint plugin

* Add test

* Add test

* Review comments

* Adjust tests

* Rename variable

* also test keyword_only args

* Use docstrings

* Fix tests

* Better return type
2022-06-22 12:48:23 +02:00
epenet 9fd48da132
Add lock checks to pylint type-hint plugin ()
* Add ability to check kwargs type annotation

* Add checks for lock

* Add tests

* Fix components

* Fix spelling

* Revert "Fix components"

This reverts commit 121ff6dc51.

* Adjust comment

* Add comments to TypeHintMatch
2022-06-21 18:53:31 +02:00
epenet 1b8dd3368a
Add checks for lock properties in type-hint plugin ()
* Add checks for lock properties in type-hint plugin

* Adjust comment

* Simplify return-type

* Only check properties when ignore_missing_annotations is disabled

* Adjust tests

* Add comment

* Adjust docstring
2022-06-21 14:36:22 +02:00
epenet 187d56b88b
Add ability to run plugin on unannotated functions ()
* Add ability to run plugin on unannotated functions

* Use options

* Adjust help text

* Add test for the option
2022-06-16 20:12:30 +02:00
epenet ca0a185b32
Enforce config-flow type hints to get options flow ()
* Enforce config-flow type hints to get options flow

* Add checks on return_type

* Fix tests

* Add tests

* Add BinOp to test

* Update tests/pylint/test_enforce_type_hints.py

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Update pylint/plugins/hass_enforce_type_hints.py

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Add TypeHintMatch property

* Update pylint/plugins/hass_enforce_type_hints.py

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-06-13 11:14:30 +02:00
epenet f91aa33c5f
Add FlowResultType enum to data entry flow () 2022-06-07 22:02:44 -07:00
Marc Mueller 983a76a91c
Update pylint to 2.14.0 () 2022-06-06 21:43:47 +02:00
epenet 999b3a4f7b
Adjust astroid import in pylint plugin ()
* import nodes from astroid

* Update remaining pylint plugins

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-06-02 07:48:59 +02:00
epenet 4c7837a576
Enforce type hints for config_flow ()
* Enforce type hints for config_flow

* Keep astroid migration for another PR

* Defer elif case

* Adjust tests

* Use ancestors

* Match on single base_class

* Invert for loops

* Review comments

* slots is new in 3.10
2022-06-01 13:09:53 +02:00
epenet 577be70da9
Add new method to pylint type-hint plugin ()
Enforce type hints on remove_config_entry_device
2022-06-01 08:38:48 +02:00
epenet cf17169b0e
Refactor type-hint pylint plugin ()
* Cleanup unused variable

* Adjust tests

* Refactor _METHOD_MATCH dict

* Remove duplicate function

* Early exit

* Undo object hint

* METHOD > FUNCTION

* Add comment

* Remove extend

* Remove break

* Extract __any_platform__

* Add tests

* Cache _PLATFORMS

* Adjust tests

* Review comments

* mypy

* shorthand
2022-05-31 11:20:31 +02:00
epenet d40cd20692
Enforce type hints for backup and cast platforms ()
* Enforce backup type hints

* Enforce cast type hints
2022-05-24 16:07:18 +02:00
epenet f25663067c
Enforce type hints on device_automation platform () 2022-05-23 18:51:40 +02:00
epenet 571c90b8cf
Adjust pylint plugin for climate HVACMode ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-23 15:59:15 +02:00
epenet ba4031718d
Enforce application_credentials type hints () 2022-05-20 06:25:29 +02:00
epenet d3c25bf450
Adjust pylint plugin for climate HVACAction () 2022-05-13 10:40:14 +02:00
epenet 802c4c0d42
Deprecate LightEntityFeature light constants () 2022-04-30 16:42:22 +02:00
epenet 7894326270
Deprecate COLOR_MODE_* light constants () 2022-04-25 16:21:19 -10:00
epenet 34da029d48
Deprecate SUPPORT_* constants in vacuum () 2022-04-25 16:20:13 -10:00
Franck Nijhof 1e4aacaeb1
Replace Alarm Control Panel FORMAT_ constants with CodeFormat enum () 2022-04-18 19:37:32 +02:00
Franck Nijhof c93c7e8eff
Replace Camera STREAM_ constants with StreamType enum () 2022-04-11 16:27:27 -07:00
epenet fa13a243d4
Deprecate SUPPORT_* constants in siren () 2022-04-08 16:38:57 +03:00
epenet f0a021d255
Deprecate SUPPORT_* constants in camera () 2022-04-08 10:22:42 +02:00
epenet 7ce9b5910a
Deprecate SUPPORT_* constants in alarm_control_panel () 2022-04-07 23:28:32 +02:00
epenet 7635cafd47
Deprecate SUPPORT_* constants in cover () 2022-04-07 23:27:55 +02:00
epenet 5b6cb6bffd
Deprecate SUPPORT_* constants in media_player () 2022-04-07 23:26:09 +02:00
epenet 6feeece574
Deprecate SUPPORT_* constants in climate () 2022-04-07 23:25:14 +02:00
epenet 15348965f3
Deprecate SUPPORT_* constants in fan () 2022-04-07 23:23:29 +02:00
epenet 075c362fd7
Deprecate SUPPORT_* constants in humidifier () 2022-04-07 15:36:16 +02:00
epenet 381e669b64
Deprecate SUPPORT_* constants in water-heater () 2022-04-07 15:33:09 +02:00
epenet 3c57adefdb
Deprecate SUPPORT_* constants in lock () 2022-04-07 14:14:38 +02:00
epenet d614ccd161
Deprecate SUPPORT_* constants in remote () 2022-04-07 09:42:36 +02:00
epenet d0288f14f0
Add sensor DEVICE_CLASS_* to deprecated imports () 2022-04-04 15:03:28 -07:00
epenet 9ef67c4b4c
Add more constants to deprecated imports ()
* Add core ENTITY_CATEGORY_* to deprecated imports

* Alphabetical order

* Add core SOURCE_* to deprecated imports

* Add switch DEVICE_CLASS_* to deprecated imports

* Add binary_sensor DEVICE_CLASS_* to deprecated imports

* Add humidifier DEVICE_CLASS_* to deprecated imports

* Add config_entries.DISABLED_***

* Add device_registry.DISABLED_***

* Add humidifier.const

* Add media_player DEVICE_CLASS_*

* Add cover DEVICE_CLASS_*
2022-04-04 19:48:14 +02:00