Commit Graph

201 Commits (119bc7d84704181c51f92ca6b901ce6a03f2f34b)

Author SHA1 Message Date
Franck Nijhof 56dd0a6867
Run hassfest in pre-commit when brands changed (#79589) 2022-10-04 16:41:11 +02:00
Paulus Schoutsen 62c114e849
Add Apple brand (#79227) 2022-09-28 16:21:09 -04:00
Franck Nijhof fbd265aa2d
Update pyupgrade to v2.38.0 (#78573) 2022-09-16 12:51:58 +02:00
Franck Nijhof 6dc3c0b572
Update black to 22.8.0 (#78509) 2022-09-15 12:45:18 +02:00
epenet 23168434d5
Add pylint directory to black pre-commit (#78011)
Add pylint to black CI
2022-09-08 09:14:58 +02:00
Franck Nijhof 2b2ea3dd73
Update flake8-noqa to 1.2.8 (#76506) 2022-08-09 09:35:38 -04:00
Franck Nijhof ce871835b2
Update pyupgrade to v2.37.3 (#76257) 2022-08-05 01:04:10 +02:00
Marc Mueller 503e88642e
Update pyupgrade to 2.37.2 (#75456) 2022-07-19 21:06:18 +02:00
Paulus Schoutsen 41ec8cd354
Expose supported brands via API (#75074) 2022-07-12 13:49:54 -07:00
Franck Nijhof af2feb3d40
Update pyupgrade to v2.37.1 (#74989) 2022-07-11 16:54:01 +02:00
Franck Nijhof 08887a6faa
Update yamllint to 1.27.1 (#74853) 2022-07-10 14:57:46 -07:00
Franck Nijhof 8054e309b3
Update flake8-noqa to 1.2.5 (#74896) 2022-07-10 14:23:40 -07:00
Franck Nijhof 52130b227e
Update flake8-comprehensions to 3.10.0 (#74882) 2022-07-10 14:55:43 +02:00
epenet 1bfd8b1a76
Add enforce_type_hints to vscode tasks (#74227) 2022-06-30 20:49:41 +02:00
Franck Nijhof fdb7a23171
Update black to 22.6.0 (#74209)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-30 10:08:06 +02:00
Franck Nijhof 8007effd4f
Update pyupgrade to v2.34.0 (#73530) 2022-06-15 13:32:39 +02:00
epenet fe5fe148fa
Add mypy checks to pylint plugins (#72821) 2022-06-02 00:06:19 +02:00
Marc Mueller 1ac71455cb
Move remaining metadata to pyproject (#72469) 2022-05-26 02:54:49 +02:00
Franck Nijhof ace2f18697
Update pyupgrade to v2.32.1 (#71939) 2022-05-16 13:58:54 +02:00
Marc Mueller 2346cb1cd7
Update pyupgrade to 2.32.0 (#69991) 2022-04-13 20:23:19 +02:00
epenet 93706ca21a
Bump prettier to v2.6.1 and enable on CI (#68877) 2022-03-30 13:10:48 +02:00
Jason Hunter 7f5ee53d51
Fix pre-commit by upgrading black (#68855) 2022-03-29 15:29:30 -04:00
Franck Nijhof cdc78ee129
Update isort to 5.10.1 (#68564) 2022-03-23 14:47:43 +01:00
Franck Nijhof fabcdf7498
Update flake8-comprehensions to 3.8.0 (#68164) 2022-03-15 11:06:13 +01:00
Franck Nijhof fb703ddc5d
Update pyupgrade to v2.31.1 (#68110) 2022-03-14 11:36:34 +01:00
Ville Skyttä ca32c38859
Upgrade bandit to 1.7.4 (#67669)
No new issues flagged.

https://github.com/PyCQA/bandit/releases/tag/1.7.1
https://github.com/PyCQA/bandit/releases/tag/1.7.2
https://github.com/PyCQA/bandit/releases/tag/1.7.3
https://github.com/PyCQA/bandit/releases/tag/1.7.4
2022-03-05 20:13:30 +01:00
Joakim Sørensen 9f57ce504b
Use GraphQL for GitHub integration (#66928) 2022-02-20 11:59:11 +01:00
Franck Nijhof fa09cf663e
Update black to 22.1.0 (#65788) 2022-02-05 14:19:37 +01:00
Ville Skyttä 27d5be71dd
Update python-typing-update config to py39plus (#65261) 2022-01-30 20:16:14 -08:00
Marc Mueller 7d949a7665
Add dedicated pre-commit hook for mypy_config [hassfest] (#65092) 2022-01-28 19:46:17 +01:00
Marc Mueller 75f39f9ca2
Move version metadata key to setup.cfg (#65091)
* Move version to setup.cfg
* Move python_requires to setup.cfg
* Add script to validate project metadata
* Add dedicated pre-commit hook
2022-01-28 13:36:20 +01:00
Marc Mueller 86ed720335
Move `install_requires` to `setup.cfg` (#65095) 2022-01-27 22:34:18 -08:00
Michael a5eac99208
Add pylint to pre-commit hooks (#64665) 2022-01-24 12:00:49 +01:00
Franck Nijhof 7a2b699371
Update codespell to 2.1.0 (#64661) 2022-01-21 22:05:24 +01:00
Marc Mueller 55894d0bf9
Run pre-commit `hassfest` on changes to script files (#64195) 2022-01-16 17:02:05 +01:00
Marc Mueller 99d648fde6
Fix pre-commit gen_requirements_all files regex (#64095) 2022-01-14 01:04:12 +01:00
Marc Mueller 30bd3234de
Run pre-commit script on constraint changes (#64073) 2022-01-13 22:14:43 +01:00
Marc Mueller dd39389a11
Use --py39-plus setting [pyupgrade] (#63927) 2022-01-11 21:38:17 +01:00
Franck Nijhof 396825ab92
Update pyupgrade to v2.31.0 (#63888) 2022-01-11 13:22:16 +01:00
Marc Mueller 1b884964a4
Run `hassfest` on changes to `.strict-typing` (#63237) 2022-01-02 22:53:34 +01:00
Marc Mueller 2738217c4b
Run `gen_requirements_all` script on changes to `setup.py` (#63171) 2022-01-02 16:11:25 +01:00
Marc Mueller 06b9be4d9c
Upgrade flake8-noqa to 1.2.1 (#63170) 2022-01-02 02:22:26 +01:00
Franck Nijhof 07e034c1c6
Add iif (immediate if) template function/filter (#61428) 2021-12-21 17:25:07 +01:00
Franck Nijhof 0dbd948867
Add Open-Meteo integration (second attempt) (#61742) 2021-12-16 21:12:33 +01:00
Franck Nijhof bc79d41266
Upgrade black to 21.12b0 (#61741) 2021-12-13 16:02:35 -08:00
epenet 97d292133f
Revert "Add Open-Meteo integration (#60379)" (#61130)
This reverts commit d802f3a82f.
2021-12-06 23:35:14 +01:00
Franck Nijhof d802f3a82f
Add Open-Meteo integration (#60379)
Co-authored-by: MatthewFlamm <39341281+MatthewFlamm@users.noreply.github.com>
2021-12-06 10:01:12 -08:00
Franck Nijhof 909784bff8
Upgrade black to 21.11b1 (#60532) 2021-11-29 11:51:58 +01:00
Jared Hobbs 6d4b74f8f2
Add haa vendor extensions (#59750)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-20 09:22:10 -06:00
Franck Nijhof 5133269e2b
Upgrade black to 21.11b0 (#59823) 2021-11-17 11:19:09 +01:00
Franck Nijhof fae6c6fda1
Upgrade pyupgrade to v2.29.0 (#59499) 2021-11-10 22:21:43 -08:00
Franck Nijhof da8b9cbe82
Upgrade isort to 5.10.0 (#59046) 2021-11-04 11:29:01 +01:00
Franck Nijhof a52466c339
Upgrade yamllint to 1.26.3 (#59047) 2021-11-04 11:27:20 +01:00
Franck Nijhof 2dca080574
Upgrade black to 21.10b0 (#58870) 2021-11-01 08:51:36 +01:00
Marc Mueller bf24090463
Update flake8 related packages (#57538) 2021-10-12 15:33:08 +02:00
Franck Nijhof 70aa8b6f00
Upgrade flake8-comprehensions to 3.7.0 (#57520) 2021-10-12 10:15:45 +02:00
Franck Nijhof 917254e956
Upgrade pyupgrade to v2.27.0 (#56638) 2021-09-25 11:48:47 +02:00
Franck Nijhof c1df49e9fc
Upgrade black to 21.9b0 (#56575) 2021-09-23 16:33:24 +02:00
Franck Nijhof d6483f2f36
Upgrade isort to 5.9.3 (#54481) 2021-08-11 09:01:45 -07:00
Matthew LeMay 33c33d844e
Update pyupgrade to 2.23.3 (#54179) 2021-08-10 00:16:33 +02:00
Marc Mueller 882c323551
Update pyupgrade to v2.23.0 (#53495) 2021-07-26 14:21:30 +02:00
Marc Mueller 5d2ce19746
Update python-typing-update to v0.3.5 (#53223)
* Update python-typing-update to 0.3.5

* Update typing
2021-07-20 11:31:48 +02:00
Franck Nijhof dd8ec04e58
Upgrade black to 21.7b0 (#53192) 2021-07-19 18:03:02 +02:00
Ville Skyttä 470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes (#52987) 2021-07-19 10:46:09 +02:00
Franck Nijhof f362852a24
Upgrade black to 21.6b0 (#51785) 2021-06-12 22:07:22 +02:00
Franck Nijhof 5a4add6437
Upgrade black to 21.5b2 (#51297) 2021-05-31 21:04:20 +03:00
Eduard van Valkenburg 0bba0f07ac
Add SIA Alarm systems (#36625)
* initial commit of SIA integration

* translations

* moved reactions to file, typed everything

* fixed no-else-return 3 times

* refactored config and fix coverage of test

* fix requirements_test

* elimated another platform

* forgot some mentions of sensor

* updated config flow steps, fixed restore and small edits

* fixed pylint

* updated config_flow with better schema, small fixes from review

* final comment and small legibility enhancements

* small fix for pylint

* fixed init

* fixes for botched rebase

* fixed port string

* updated common strings

* rebuild component with eventbus

* fixed pylint and tests

* updates based on review by @bdraco

* updates based on new version of package and reviews

* small updates with latest package

* added raise from

* deleted async_setup from test

* fixed tests

* removed unused code from addititional account step

* fixed typo in strings

* clarification and update to update_data func

* added iot_class to manifest

* fixed entity and unique id setup

* small fix in tests

* improved unique_id semantics and load/unload functions

* added typing in order to fix mypy

* further fixes for typing

* final fixes for mypy

* adding None return types

* fix hub DR identifier

* rebased, added DeviceInfo

* rewrite to clean up and make it easier to read

* replaced functions with format for id and name

* renamed tracker remover small fix in state.setter

* improved readibility of state.setter

* no more state.setter and small updates

* mypy fix

* fixed and improved config flow

* added fixtures to test and other cleaner test code

* removed timeband from config, will reintro in a options flow

* removed timeband from tests

* added options flow for zones and timestamps

* removed type ignore

* replaced mapping with collections.abc
2021-05-24 08:48:28 +02:00
Franck Nijhof ecac574eb0
Upgrade pyupgrade to v2.16.0 (#50756) 2021-05-17 11:27:09 +02:00
Franck Nijhof 64a6a75330
Upgrade pyupgrade to v2.15.0 (#50666) 2021-05-15 16:04:08 +02:00
Franck Nijhof 71c21693ef
Upgrade flake8-comprehensions to 3.5.0 (#50665) 2021-05-15 16:02:10 +02:00
Franck Nijhof 5ce07e689a
Upgrade flake8 to 3.9.2 (#50664) 2021-05-15 15:55:45 +02:00
Franck Nijhof 4025443b67
Upgrade black to 21.5b1 (#50661) 2021-05-15 15:39:45 +02:00
Franck Nijhof b7cd75b134
Upgrade pyupgrade to v2.14.0 (#50059) 2021-05-05 09:28:47 +02:00
Franck Nijhof 373236e588
Upgrade black to 21.5b0 (#50102) 2021-05-05 09:09:34 +02:00
Franck Nijhof cc21de569d
Upgrade yamllint to 1.26.1 (#50060) 2021-05-04 19:27:23 -10:00
Franck Nijhof de6c9e67b1
Upgrade black to 21.4b2 (#49841) 2021-04-29 11:50:29 +02:00
Franck Nijhof 9c3c67b71b
Upgrade black to 21.4b0 (#49715) 2021-04-26 10:18:30 -10:00
J. Nick Koston 3fa8ffa731
Enable mccabe complexity checks in flake8 (#49616)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +02:00
Franck Nijhof 77ae4abc6e
Upgrade isort to 5.8.0 (#49516) 2021-04-21 11:57:23 +02:00
Franck Nijhof ee37d8141a
Upgrade flake8 to 3.9.1 (#49284) 2021-04-16 09:35:19 +02:00
Marc Mueller 1a38d2089d
Bump python-typing-update to v0.3.3 (#48992)
* Bump python-typing-update to 0.3.3
* Changes after update
2021-04-10 15:21:11 +02:00
Marc Mueller 8e2b5b36b5
Bump pyupgrade to 2.12.0 (#48943) 2021-04-09 09:58:27 -07:00
Ville Skyttä 3cd52b695d
Upgrade flake8 and dependencies, enable flake8-noqa (#48393)
* Upgrade flake8 to 3.9.0

https://flake8.pycqa.org/en/latest/release-notes/3.9.0.html

* Upgrade pydocstyle to 6.0.0

https://www.pydocstyle.org/en/latest/release_notes.html#september-13th-2020
https://www.pydocstyle.org/en/latest/release_notes.html#march-18th-2021

* Upgrade flake8-docstrings to 1.6.0, enable flake8-noqa

https://gitlab.com/pycqa/flake8-docstrings/-/blob/1.6.0/HISTORY.rst
https://github.com/plinss/flake8-noqa/issues/1

* Upgrade/pin pyflakes to 2.3.1

https://github.com/PyCQA/pyflakes/blob/2.3.1/NEWS.rst

* Pin pycodestyle to 2.7.0
2021-03-27 10:22:11 +01:00
Marc Mueller 1dc25a5864
Bump python-typing-update to 0.3.2 (#48303)
* Bump python-version-update to 0.3.2
* Changes after update
* Fix pylint issues
2021-03-25 21:09:06 +01:00
Franck Nijhof dc15f243e6
Upgrade pyupgrade to v2.11.0 (#48220) 2021-03-22 13:29:39 +01:00
Franck Nijhof 8a56dbf587
Add flake8 comprehensions checks to pre-commit & CI (#48111) 2021-03-19 13:41:09 +01:00
Marc Mueller 7def367467
Update pyupgrade to v2.10.1 (#48089) 2021-03-19 00:03:27 +01:00
Marc Mueller 314a5518f1
Add python-typing-update to pre-commit-config (#48088) 2021-03-18 23:20:25 +01:00
Ville Skyttä b0c873dd34
Upgrade isort to 5.7.0 (#47279)
https://pycqa.github.io/isort/CHANGELOG/#570-december-30th-2020
2021-03-02 21:16:11 +01:00
Ville Skyttä dc880118a4
Lint suppression cleanups (#47248)
* Unused pylint suppression cleanups

* Remove outdated pylint bug references

* Add flake8-noqa config and note to run it every now and then

* Add codes to noqa's

* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Franck Nijhof 782863ca87
Ensure pre-commit's hassfest triggers on service file changes (#46753) 2021-02-18 18:17:09 +01:00
Joakim Sørensen 7e9500e465
Use bootstrap in devcontainer (#45968) 2021-02-04 10:41:28 +01:00
Franck Nijhof 03711b1d97
Revert "Update .pre-commit-config.yaml to prevent loops between isort and black" (#45391)
This reverts commit c03b4d8aee.
2021-01-21 11:00:09 +01:00
Manuel Durán c03b4d8aee
Update .pre-commit-config.yaml to prevent loops between isort and black (#45321)
The pre-commit hook gets stuck in a file formatting loop where black and isort modify each other results. According to the isort webpage, the option --profile black has to be used to enhance compatibility. This has been run successfully in my local and has solved the loop.

See:
https://github.com/home-assistant/core/issues/45318
https://github.com/home-assistant/core/pull/45314
2021-01-20 08:01:13 -05:00
J. Nick Koston da677f7d5a
Add support for discovery via DHCP (#45087)
* Add support for discovery via DHCP

* additional tesla ouis

* merge tests

* dhcp test

* merge requirements test

* dhcp test

* dhcp discovery

* dhcp discovery

* pylint

* pylint

* pylint

* fix

* Add matching tests

* 100% cover

* cleanup

* fix codespell

* Update exception handling

* remove unneeded comment

* fix options handling exception

* fix options handling exception
2021-01-14 09:09:08 +01:00
Charles Garwood d68fdbc283
Add zwave_js integration (#45020)
* Run zwave_js scaffold (#44891)

* Add zwave_js basic connection to zwave server (#44904)

* add the basic connection to zwave server

* fix name

* Fix requirements

* Fix things

* Version bump dep to 0.1.2

* fix pylint

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Bump zwave-js-server-python to 0.2.0

* Use zwave js server version check instead of fetching full state (#44943)

* Use version check instead of fetching full state

* Fix tests

* Use 0.3.0

* Also catch aiohttp client errors

* Update docstring

* Lint

* Unignore zwave_js

* Add zwave_js entity discovery basics and sensor platform (#44927)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Complete zwave_js typing (#44960)

* Type discovery

* Type init

* Type entity

* Type config flow

* Type sensor

* Require typing of zwave_js

* Complete zwave_js config flow test coverage (#44955)

* Correct zwave_js sensor device class (#44968)

* Fix zwave_js KeyError on entry setup timeout (#44966)

* Bump zwave-js-server-python to 0.5.0 (#44975)

* Remove stale callback signal from zwave_js (#44994)

* Add light platform to zwave_js integration (#44974)

* add light platform

* styling fix

* fix type hint

* Fix typing

* Update homeassistant/components/zwave_js/const.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/entity.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/entity.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/entity.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/entity.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/entity.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* color temp should be integer

* guard Nonetype error

* Update homeassistant/components/zwave_js/light.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/light.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* some fixes after merging

* add additional guards for None values

* adjustments for rgb lights

* Fix typing

* Fix black

* Bump zwave-js-server-python to 0.6.0

* guard value updated log

* remove value_id lookup as its no longer needed

* fiz sending white value

* Update homeassistant/components/zwave_js/light.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Add zwave_js test foundation (#44983)

* Exclude text files from codespell

* Add basic dump fixture

* Add test foundation

* Fix test after rebase

* Exclude jsonl files from codespell

* Rename fixture file type to jsonl

* Update fixture path

* Fix stale docstring

* Add controller state json fixture

* Add multisensor 6 state json fixture

* Update fixtures

* Remove basic dump fixture

* Fix fixtures after library bump

* Update codeowner

* Minor cleanup Z-Wave JS (#45021)

* Update zwave_js device_info (#45023)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-01-11 00:08:25 +01:00
Ville Skyttä 43474762b2
Drop remaining Python < 3.8 support (#44743)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-01-04 11:47:29 +01:00
Ville Skyttä 1c8fbc7e6a
Upgrade codespell to 2.0.0 (#44695)
* Upgrade codespell to 2.0.0

* Fix newly found spelling errors
2020-12-31 19:14:07 +01:00
Ville Skyttä c6c3d720ca
Upgrade bandit to 1.7.0 (#44184)
* Upgrade bandit to 1.6.3

https://github.com/PyCQA/bandit/releases/tag/1.6.3

* Upgrade bandit to 1.7.0

https://github.com/PyCQA/bandit/releases/tag/1.7.0
2020-12-15 03:38:01 +01:00
Martin Hjelmare 6daf40b254
Copy default vscode settings during bootstrap (#43180) 2020-11-13 16:03:40 +01:00