epenet
23168434d5
Add pylint directory to black pre-commit ( #78011 )
...
Add pylint to black CI
2022-09-08 09:14:58 +02:00
epenet
645f5e5ac1
Introduce new MediaPlayerState StrEnum ( #77941 )
...
* 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 ( #77944 )
2022-09-07 10:58:54 +02:00
epenet
9fb0b3995c
Adjust pylint checks for notify get_service ( #77606 )
...
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 ( #77872 )
...
* 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 ( #77663 )
...
* Add BaseNotificationService to pylint checks
* Remove comment
2022-09-06 12:18:29 +02:00
epenet
03b4d25564
Add notify get_service to pylint checks ( #77643 )
...
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 ( #77358 )
...
* 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 ( #77219 )
...
* 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 ( #76560 )
2022-08-18 19:22:08 +02:00
epenet
c7301a449b
Add switch checks to pylint plugin ( #76909 )
2022-08-18 14:48:23 +02:00
Erik Montnemery
60c8d95a77
Remove white_value support from light ( #76926 )
2022-08-18 08:21:05 -04:00
epenet
07ba3c1383
Add update checks to pylint plugin ( #76912 )
2022-08-18 13:27:05 +02:00
epenet
49c793b1a2
Add scene checks to pylint plugin ( #76908 )
2022-08-17 18:44:08 +02:00
epenet
27b5ebb9d3
Add RestoreSensor to sensor checks in pylint ( #76916 )
2022-08-17 18:43:28 +02:00
epenet
fc6c66fe6c
Add RestoreEntity to button checks in pylint ( #76932 )
2022-08-17 18:42:35 +02:00
epenet
ce07748979
Add water_heater checks to pylint plugin ( #76911 )
2022-08-17 17:50:00 +02:00
epenet
35d01d7939
Add RestoreNumber to number checks in pylint ( #76933 )
2022-08-17 16:58:42 +02:00
epenet
eec0f3351a
Add weather checks to pylint plugin ( #76915 )
2022-08-17 16:27:47 +02:00
epenet
5736ba6230
Add remote checks to pylint plugin ( #76875 )
2022-08-16 19:24:00 +02:00
epenet
2630ff8fce
Add sensor checks to pylint plugin ( #76876 )
2022-08-16 19:22:15 +02:00
Marc Mueller
93630cf1f8
Add missing entry for `SOURCE_TYPE_*` to hass-imports plugin ( #76829 )
2022-08-16 11:17:10 +02:00
Marc Mueller
91005f4694
Update pylint plugin to use TriggerActionType ( #76819 )
2022-08-16 11:16:33 +02:00
Marc Mueller
b8f83f6c70
Use BinarySensorDeviceClass instead of deprecated constants ( #76830 )
2022-08-16 07:40:33 +02:00
Marc Mueller
c93d9d9a90
Move `AutomationActionType` to helpers.trigger ( #76790 )
2022-08-15 08:37:11 -04:00
epenet
6243f24b05
Add media-player checks to pylint plugin ( #76675 )
...
* 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 ( #76457 )
...
* 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 ( #76458 )
2022-08-09 10:56:15 -04:00
epenet
bcdf880364
Add siren checks to pylint plugin ( #76460 )
2022-08-09 10:55:52 -04:00
epenet
0ffdf9fb6e
Add device_tracker checks to pylint plugin ( #76228 )
2022-08-04 21:03:13 +02:00
epenet
3eafe13085
Improve UI in pylint plugin ( #74157 )
...
* 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 ( #76030 )
...
* 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 ( #75913 )
2022-08-01 14:09:47 +02:00
Marc Mueller
003fe9220e
Add protocol types for device_tracker `async_see` and `see` ( #75891 )
2022-07-29 00:27:47 +02:00
epenet
40ee7bab8f
Fix false-positive in pylint plugin ( #74244 )
2022-07-10 00:31:09 +02:00
epenet
a1a887ddac
Add GeolocationEvent checks to pylint plugin ( #74286 )
2022-07-05 12:27:00 +02:00
epenet
2c171e30fa
Add ClimateEntity checks to pylint plugin ( #74275 )
...
* 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 ( #74264 )
2022-06-30 21:50:57 +02:00
epenet
1bfd8b1a76
Add enforce_type_hints to vscode tasks ( #74227 )
2022-06-30 20:49:41 +02:00
epenet
781e4571b2
Add CalendarEntity checks to pylint plugin ( #74228 )
...
* 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 ( #73826 )
2022-06-29 12:51:37 +02:00
epenet
a6ef330b63
Add ButtonEntity to pylint checks ( #74171 )
2022-06-29 12:36:57 +02:00
epenet
ebf21d1bd7
Add BinarySensorEntity to pylint checks ( #74131 )
2022-06-29 11:41:56 +02:00
epenet
28c1a5c09f
Enforce config-flow type hints for reauth step ( #72830 )
2022-06-28 10:52:41 +02:00
epenet
c19a8ef8e0
Enforce flow-handler result type hint for step_* ( #72834 )
2022-06-28 10:08:36 +02:00
epenet
319ef38d34
Add AlarmControlPanelEntity to pylint checks ( #74091 )
2022-06-28 10:02:57 +02:00
epenet
f9c83dd991
Add CoverEntity to pylint checks ( #74036 )
...
* 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 ( #73902 )
...
* 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 ( #73886 )
2022-06-23 21:31:30 +02:00
epenet
b17d4ac65c
Remove replicated async definitions in pylint plugin ( #73823 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-06-22 23:51:40 +02:00