1
mirror of https://github.com/home-assistant/core synced 2024-08-06 09:34:49 +02:00
Commit Graph

28 Commits

Author SHA1 Message Date
epenet
7894326270
Deprecate COLOR_MODE_* light constants (#69302) 2022-04-25 16:21:19 -10:00
epenet
34da029d48
Deprecate SUPPORT_* constants in vacuum (#69516) 2022-04-25 16:20:13 -10:00
Franck Nijhof
1e4aacaeb1
Replace Alarm Control Panel FORMAT_ constants with CodeFormat enum (#69861) 2022-04-18 19:37:32 +02:00
Franck Nijhof
c93c7e8eff
Replace Camera STREAM_ constants with StreamType enum (#69871) 2022-04-11 16:27:27 -07:00
epenet
fa13a243d4
Deprecate SUPPORT_* constants in siren (#69648) 2022-04-08 16:38:57 +03:00
epenet
f0a021d255
Deprecate SUPPORT_* constants in camera (#69481) 2022-04-08 10:22:42 +02:00
epenet
7ce9b5910a
Deprecate SUPPORT_* constants in alarm_control_panel (#69475) 2022-04-07 23:28:32 +02:00
epenet
7635cafd47
Deprecate SUPPORT_* constants in cover (#69484) 2022-04-07 23:27:55 +02:00
epenet
5b6cb6bffd
Deprecate SUPPORT_* constants in media_player (#69518) 2022-04-07 23:26:09 +02:00
epenet
6feeece574
Deprecate SUPPORT_* constants in climate (#69482) 2022-04-07 23:25:14 +02:00
epenet
15348965f3
Deprecate SUPPORT_* constants in fan (#69514) 2022-04-07 23:23:29 +02:00
epenet
075c362fd7
Deprecate SUPPORT_* constants in humidifier (#69519) 2022-04-07 15:36:16 +02:00
epenet
381e669b64
Deprecate SUPPORT_* constants in water-heater (#69512) 2022-04-07 15:33:09 +02:00
epenet
3c57adefdb
Deprecate SUPPORT_* constants in lock (#69513) 2022-04-07 14:14:38 +02:00
epenet
d614ccd161
Deprecate SUPPORT_* constants in remote (#69515) 2022-04-07 09:42:36 +02:00
epenet
d0288f14f0
Add sensor DEVICE_CLASS_* to deprecated imports (#69243) 2022-04-04 15:03:28 -07:00
epenet
9ef67c4b4c
Add more constants to deprecated imports (#69253)
* 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
epenet
76247414bf
Add pylint plugin for deprecated STATE_CLASS_* (#69237) 2022-04-04 11:45:53 +02:00
Marc Mueller
ab67ba20f5
Update pylint plugin to validate _async_has_devices (#66512) 2022-02-14 18:10:50 +01:00
Marc Mueller
ac7e8c40a3
Remove homeassistant import [pylint plugin] (#65911) 2022-02-06 18:36:02 +01:00
epenet
cc7680b0c3
Adjust pylint plugin to enforce diagnostics type hints (#64976)
* Adjust pylint plugin to enforce diagnostics type hints

* Adjust return_type

* Set return_type to UNDEFINED

* Use Any for the expected data

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-03 19:22:43 +01:00
epenet
367521e369
Adjust pylint plugin to enforce device_tracker type hints (#64903)
* Adjust pylint plugin to enforce device_tracker type hints

* Use a constant for the type hint matchers

* Add tests

* Add x_of_y match

* Adjust bluetooth_tracker

* Adjust mysensors

* Adjust tile

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-25 18:21:59 +01:00
epenet
78e92d1662
Adjust pylint plugin to enforce platform type hints (#64836)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 18:51:06 +01:00
epenet
11fa86cc83
Add pylint plugin to enforce type hints (#64313)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 13:38:56 +01:00
Ruslan Sayfutdinov
55f4962c06
Fix pylint plugin which checks relative imports (#62693) 2021-12-23 11:14:47 -08:00
Ruslan Sayfutdinov
016abda12e
Pylint plugin to check that relative imports are used (#50937)
* Pylint plugin to check that relative imports are used

* Fix existing sites

* Update description message

* Fix typo
2021-05-22 09:15:30 +01:00
Ruslan Sayfutdinov
0e7409e617
Pylint plugin to check __init__ return type (#50868)
* Pylint plugin to check __init__ return type

* Support *args add **kwargs, type hints

* Use 'in' instead of 'any()'

* Fix last few places
2021-05-20 18:00:10 +01:00
J. Nick Koston
c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period (#48064)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00