Commit Graph
1148 Commits
Author SHA1 Message Date
J. Nick KostonandGitHub 65ca62c991 Ensure remote bluetooth adapters are loaded before integrations that need them (#85723) 2023-01-15 13:17:17 -10:00
Franck NijhofandGitHub 3cb56211f8 Make translations keys check hassfest more strict (#85221) 2023-01-15 17:43:34 +01:00
epenetandGitHub 8fbcb93ab4 Use IntEnum for hassfest quality scale (#85817) 2023-01-14 10:19:18 +01:00
J. Nick KostonandGitHub 8b893b7062 Bump cryptography to 39.0.0 (#85846)
* Bump cryptography to 39.0.0

changelog: https://github.com/pyca/cryptography/compare/38.0.3...39.0.0

The change that is significant is https://github.com/pyca/cryptography/pull/7601 which
should help with esphome noise encryption performance

* constraints

* fix botocore not loading
2023-01-13 19:58:01 -05:00
epenetandGitHub e75c85f679 Downgrade integrations without code owner (#85752) 2023-01-13 10:08:15 +01:00
Martin HjelmareandGitHub 4895f2e7c2 Fix gen_requirements_all script permissions (#85745) 2023-01-12 15:46:36 +01:00
Franck NijhofandGitHub 3bb435c292 Pin matplotlib to 3.6.1 (#85540) 2023-01-09 18:34:10 +01:00
RoboMagusandGitHub dc000d2289 Mark repo as safe directory to git config (#83755)
Fixes https://github.com/home-assistant/core/issues/83753
fixes undefined
2023-01-08 00:11:12 +01:00
3ad4caa3d7 Add Starlink Integration (#77091)
Co-authored-by: J. Nick Koston <[email protected]>
2023-01-07 10:13:37 -10:00
J. Nick KostonandGitHub b470c3484b Bump httpx to 0.23.2 (#85023)
changelogs:
https://github.com/encode/httpcore/compare/0.16.2...0.16.3
https://github.com/encode/httpx/compare/0.23.1...0.23.2
2023-01-02 20:45:52 -05:00
Franck NijhofandGitHub 139dd22ce6 Replace attrs with dataclasses in hassfest (#84475) 2022-12-23 15:46:00 +01:00
1b803454ce Install all test requirements in bootstrap (#84469)
Co-authored-by: Franck Nijhof <[email protected]>
Co-authored-by: Paulus Schoutsen <[email protected]>
2022-12-22 22:21:49 +01:00
Erik MontnemeryandGitHub 255f35b979 Add support for translating custom attribute state (#83386)
* Add support for translating custom attribute state

* Address review comment

* Rename attribute to state_attributes, allow naming attributes
2022-12-21 10:43:49 +01:00
Franck NijhofandGitHub 80b3572627 Rename image integration to image_upload (#84063)
* Rename image integration to image_upload

* fix test
2022-12-16 08:16:38 -05:00
Erik MontnemeryandGitHub 8f761f44bd Add support for translating state attributes (#77028)
* Allow defining state attributes in strings.json

* Add all climate attributes

* Remove support for custom device classes

* Address review comments
2022-12-09 08:22:29 +01:00
5e81f853e6 Bump pip_check conflicts +1 (#83536)
* Bump pip_check conflicts +1

* Update script/pip_check

Co-authored-by: Philip Allgaier <[email protected]>

Co-authored-by: Philip Allgaier <[email protected]>
2022-12-08 12:44:33 +01:00
Franck NijhofandGitHub 552a87dfcc Upgrade grpcio(-status) to 1.51.1 (#83420) 2022-12-06 21:57:06 +01:00
Michaël ArnautsandGitHub 5a8cf38552 Update pycomfoconnect to 0.5.1 (#83124) 2022-12-02 10:38:29 -10:00
J. Nick KostonandGitHub 8eeba490d1 Update aiobafi6 to 0.7.3 (#83073) 2022-12-02 14:56:02 +01:00
1d1b59b800 Fix hassfest serializer injecting commas in empty lists (#83052)
* No trailing comma for empty lists

* Update script/hassfest/serializer.py

Co-authored-by: Aarni Koskela <[email protected]>

Co-authored-by: Paulus Schoutsen <[email protected]>
Co-authored-by: Aarni Koskela <[email protected]>
2022-12-01 20:26:30 +02:00
Erik MontnemeryandGitHub 8e617bbc1d Add translation_key property to entites (#82701)
* Add translation_key attribute to entity state

* Update accuweather test

* Index entity translation keys by platform

* Store translation key in entity registry
2022-12-01 09:34:09 +01:00
Joakim PlateandGitHub c576a68d33 Upgrade pytest-aiohttp (#82475)
* Upgrade pytest-aiohttp

* Make sure executors, tasks and timers are closed

Some test will trigger warnings on garbage collect, these warnings
spills over into next test.

Some test trigger tasks that raise errors on shutdown, these spill
over into next test.

This is to mimic older pytest-aiohttp and it's behaviour on test
cleanup.

Discussions on similar changes for pytest-aiohttp are here:
https://github.com/pytest-dev/pytest-asyncio/pull/309

* Replace loop with event_loop

* Make sure time is frozen for tests

* Make sure the ConditionType is not async

  /home-assistant/homeassistant/helpers/template.py:2082: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
    def wrapper(*args, **kwargs):
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

* Increase litejet press tests with a factor 10

The times are simulated anyway, and we can't stop the normal
event from occuring.

* Use async handlers for aiohttp

tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
  /Users/joakim/src/hass/home-assistant/venv/lib/python3.9/site-packages/aiohttp/web_urldispatcher.py:189: DeprecationWarning: Bare functions are deprecated, use async ones
    warnings.warn(

* Switch to freezegun in modbus tests

The tests allowed clock to tick in between steps

* Make sure skybell object are fully mocked

Old tests would trigger attempts to post to could services:

```
DEBUG:aioskybell:HTTP post https://cloud.myskybell.com/api/v3/login/ Request with headers: {'content-type': 'application/json', 'accept': '*/*', 'x-skybell-app-id': 'd2b542c7-a7e4-4e1e-b77d-2b76911c7c46', 'x-skybell-client-id': '1f36a3c0-6dee-4997-a6db-4e1c67338e57'}
```

* Fix sorting that broke after rebase
2022-11-29 22:36:36 +01:00
Erik MontnemeryandGitHub b7652c78ee Add options flow to enable multiprotocol support on sky connect (#82525) 2022-11-29 16:34:55 -05:00
Aarni KoskelaandGitHub 16fc2972d3 Remove more useless manifest truthiness checks in hassfest (#82914) 2022-11-29 21:57:58 +01:00
Marc MuellerandGitHub 63d519c1a8 Spelling updates (#82867) 2022-11-28 16:51:43 +01:00
Aarni KoskelaandGitHub 69d519418e Remove unnecessary truthiness checks for integration.manifest (#82319) 2022-11-28 15:33:14 +01:00
Allen PorterandGitHub 682486c864 Bump pyrainbird to 0.6.3 and drop dependency conflict count (#82800) 2022-11-27 14:49:47 -05:00
J. Nick KostonandGitHub 8345176ccc Adjust pip check for four conflicts (#82777) 2022-11-27 10:31:32 +01:00
uvjustinandGitHub 9390359fe3 Bump httpx to 0.23.1 (#82725) 2022-11-26 10:04:22 -10:00
Erik MontnemeryandGitHub 7b5c80720a Tweak scaffold script (#82705) 2022-11-25 20:12:27 +01:00
e1338adf1a Allow configuring country and language in core config (#81734)
* Allow configuring country and language in core config

* Add script for updating list of countries

* Use black for formatting

* Fix quoting

* Move country codes to a separate file

* Address review comments

* Add generated/countries.py

* Get default language from owner account

* Remove unused variable

* Add script to generate list of supported languages

* Add tests

* Fix stale docsring

* Use format_python_namespace

* Correct async_user_store

* Improve typing

* Fix with_store decorator

* Initialize language in core store migration

* Fix startup

* Tweak

* Apply suggestions from code review

Co-authored-by: Franck Nijhof <[email protected]>

* Update storage.py

Co-authored-by: Franck Nijhof <[email protected]>
2022-11-24 23:25:50 +01:00
Aarni KoskelaandGitHub 97b40b5f49 Make hassfest strictly typed (#82091) 2022-11-23 19:05:31 +01:00
Franck NijhofandGitHub 4ea9926497 Not to Tox (#76582) 2022-11-23 14:40:37 +01:00
epenetandGitHub 89c7568515 Remove duplicate code in hassfest model (#82203) 2022-11-17 09:10:37 +01:00
Erik MontnemeryandGitHub aaec464627 Add support for managing the silabs multiprotocol add-on (#82170)
* Add support for managing the silabs multiprotocol add-on

* Fix passing context when starting option flow

* Allow unloading a ha yellow config entry

* Fix tests

* Log data passed to ZHA option flow

* Improve ZHA migration logic

* Move tests

* Improve test coverage

* Remove dead code

* Drop automatic ZHA migration
2022-11-16 17:38:07 +01:00
Franck NijhofandGitHub 6a1bb8c421 Deprecate Python 3.9 (#82193) 2022-11-16 15:38:10 +01:00
Aarni KoskelaandGitHub 322cb352ac Use functools.cache instead of global in hassfest requirements (#82124) 2022-11-16 13:13:45 +01:00
epenetandGitHub 0538154767 Add type hints to requirements script (#82075) 2022-11-16 13:00:35 +01:00
Aarni KoskelaandGitHub 35c1604ea7 Remove unused hassfest helper (#82123) 2022-11-15 21:26:34 +01:00
J. Nick KostonandGitHub f035223599 Make sure the config_flow key is set for brands (#82038)
Fixes https://github.com/home-assistant/frontend/issues/14376
2022-11-15 18:27:59 +01:00
7d5794cfb1 Remove unused function from hassfest model (#82073)
* Remove unused function from hassfest model

* Update model.py

Co-authored-by: J. Nick Koston <[email protected]>
2022-11-14 16:18:11 +01:00
epenetandGitHub 55444b15a9 Add type hints to hassfest models (#82074)
* Add type hints to hassfest models

* Implement review
2022-11-14 12:41:49 +01:00
Aarni KoskelaandGitHub 727dcd6df6 Keep mypy.ini and strict-typing files sorted with hassfest (#81331)
hassfest: keep mypy.ini and .strict-typing sorted
2022-11-14 06:37:47 +01:00
Aarni KoskelaandGitHub f3e85b6492 Deduplicate blackening (#81802) 2022-11-09 16:58:20 +01:00
Marc MuellerandGitHub 0c8eeaa643 Update mypy to 0.990 (#81783)
* Update mypy to 0.990

* Remove type ignore - overriding attr with property (13475)

* Remove type ignores - hasattr (13544)

* Adjust type ignore - assignment (13549)

* New error code - type-abstract (13785)

* Disable annotation-unchecked (13851)
2022-11-08 14:41:39 +01:00
Erik MontnemeryandGitHub c3d4a9cd99 Create repairs issue if an outdated currency code is configured (#81717)
* Create repairs issue if an outdated currency code is configured

* Add script for updating list of currencies

* Use black for formatting

* Move currency codes to a separate file

* Address review comments
2022-11-08 07:21:09 +01:00
Franck NijhofandGitHub 98591cd4b6 Remove hardware and fix raspberry pi brands in integrations.json (#80970) 2022-10-25 21:05:04 +02:00
Bram KragtenandGitHub 36bb0bbc1a Fix integrations.json creation, make iot_standards a list (#80945) 2022-10-25 13:43:40 +02:00
epenetandGitHub 10dbef80ae Add myself as code owner to util and const (#80664) 2022-10-22 15:07:43 +02:00
Paulus SchoutsenandGitHub 76dbd017a7 Conditionally include config flow and iot_class when relevant (#80756) 2022-10-21 20:27:59 -04:00