Commit graph

265 commits

Author SHA1 Message Date
Franck Nijhof 7556f2b84e
Update cryptography to 38.0.3 (#81455) 2022-11-03 11:18:25 +01:00
Franck Nijhof d65e639f00
Update orjson to 3.8.1 (#81000) 2022-10-26 12:40:15 +02:00
Marc Mueller 8d4c32e106
Update pip constraint to 22.4 (#80383) 2022-10-16 12:01:11 +02:00
J. Nick Koston d12cbab6c4
Bump bleak to 0.19.0 (#80349) 2022-10-15 13:57:23 -04:00
Marc Mueller 647a4ac131
Update typing-extensions constraint to >=4.4.0 (#79860) 2022-10-08 18:32:46 +03:00
Paulus Schoutsen f41b69e19e
Bump cryptography to 38 (#79067) 2022-09-25 17:39:42 -04:00
Franck Nijhof a81bb10ff9
Update yarl to 1.8.1 (#78866) 2022-09-21 13:59:42 +02:00
Franck Nijhof 774d5138ca
Update PyJWT to 2.5.0 (#78776) 2022-09-20 20:17:49 +02:00
Joakim Sørensen a38d998000
Bump awesomeversion from 22.8.0 to 22.9.0 (#78525) 2022-09-15 14:05:34 +02:00
Joakim Sørensen 0caf998547
Bump awesomeversion from 22.6.0 to 22.8.0 (#77436) 2022-08-28 14:52:23 -04:00
Franck Nijhof b4323108b1
Update cryptography to 37.0.4 (#76853) 2022-08-17 09:41:50 +02:00
Franck Nijhof 33bf94c4b2
Update orjson to 3.7.11 (#76171) 2022-08-04 22:37:57 +03:00
Marc Mueller c0e6852077
Update pip version range to 22.3 (#75572) 2022-07-24 21:11:30 +02:00
Franck Nijhof 2db8b154c9
Update orjson to 3.7.8 (#75484) 2022-07-20 11:39:07 +02:00
J. Nick Koston ba8a530d19
Use shared bluetooth models for BluetoothServiceInfo (#75322) 2022-07-16 21:14:23 -07:00
Franck Nijhof d697bb53c5
Update lru-dict to 1.1.8 (#74932) 2022-07-11 00:11:43 +02:00
Paulus Schoutsen 010b18be34
Bump atomicwrites (#74758) 2022-07-08 14:17:56 -07:00
Franck Nijhof 4261595078
Update orjson to 3.7.7 (#74581) 2022-07-07 11:00:34 +02:00
J. Nick Koston 332cf3cd2d
Resolve and caches paths for CachingStaticResource in the executor (#74474) 2022-07-06 13:49:48 -05:00
Franck Nijhof 42533ebbb3
Update requests to 2.28.1 (#74210) 2022-06-29 20:40:58 -05:00
J. Nick Koston df357962b3
Bump orjson to 3.7.5 (#74083) 2022-06-27 21:59:08 -07:00
Joakim Sørensen a94579107c
Bump awesomeversion from 22.5.2 to 22.6.0 (#74030) 2022-06-27 11:38:40 +02:00
J. Nick Koston 8b067e83f7
Initial orjson support take 3 (#73849)
* Initial orjson support take 2

Still need to work out problem building wheels

--

Redux of #72754 / #32153 Now possible since the following is solved:
ijl/orjson#220 (comment)

This implements orjson where we use our default encoder.  This does not implement orjson where `ExtendedJSONEncoder` is used as these areas tend to be called far less frequently.  If its desired, this could be done in a followup, but it seemed like a case of diminishing returns (except maybe for large diagnostics files, or traces, but those are not expected to be downloaded frequently).

Areas where this makes a perceptible difference:
- Anything that subscribes to entities (Initial subscribe_entities payload)
- Initial download of registries on first connection / restore
- History queries
- Saving states to the database
- Large logbook queries
- Anything that subscribes to events (appdaemon)

Cavets:
orjson supports serializing dataclasses natively (and much faster) which
eliminates the need to implement `as_dict` in many places
when the data is already in a dataclass. This works
well as long as all the data in the dataclass can also
be serialized. I audited all places where we have an `as_dict`
for a dataclass and found only backups needs to be adjusted (support for `Path` needed to be added for backups).  I was a little bit worried about `SensorExtraStoredData` with `Decimal` but it all seems to work out from since it converts it before it gets to the json encoding cc @dgomes

If it turns out to be a problem we can disable this
with option |= [orjson.OPT_PASSTHROUGH_DATACLASS](https://github.com/ijl/orjson#opt_passthrough_dataclass) and it
will fallback to `as_dict`

Its quite impressive for history queries
<img width="1271" alt="Screen_Shot_2022-05-30_at_23_46_30" src="https://user-images.githubusercontent.com/663432/171145699-661ad9db-d91d-4b2d-9c1a-9d7866c03a73.png">

* use for views as well

* handle UnicodeEncodeError

* tweak

* DRY

* DRY

* not needed

* fix tests

* Update tests/components/http/test_view.py

* Update tests/components/http/test_view.py

* black

* templates
2022-06-22 21:59:51 +02:00
Franck Nijhof 99db2a5afe
Update requests to 2.28.0 (#73406)
* Update requests to 2.28.0

* Fix mypy warning

* Fix Facebook messenger tests
2022-06-14 12:21:32 +02:00
J. Nick Koston c365454afb
Revert "Initial orjson support (#72754)" (#72789)
This was causing the wheels to fail to build. We need
to workout why when we don't have release pressure

This reverts commit d9d22a9556.
2022-05-31 13:51:55 -07:00
J. Nick Koston d9d22a9556
Initial orjson support (#72754) 2022-05-31 12:18:11 -07:00
Joakim Sørensen 9fe4aef4bc
Bump awesomeversion from 22.5.1 to 22.5.2 (#72624) 2022-05-27 14:37:19 -07:00
uvjustin 01b5f98414
Bump httpx to 0.23.0 (#72573)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-26 21:20:37 -10:00
Franck Nijhof ea05bd8c2e
Allow for using pip 22.1(.x) (#72348) 2022-05-23 11:58:19 +02:00
Franck Nijhof 514e7708b3
Update PyJWT to 2.4.0 (#71928) 2022-05-16 07:38:01 -07:00
Joakim Sørensen f7a2a6ea21
Bump awesomeversion from 22.2.0 to 22.5.1 (#71933) 2022-05-16 12:26:54 +02:00
Franck Nijhof 0a9a86f973
Update jinja2 to 3.1.2 (#71780) 2022-05-13 13:38:20 +02:00
Andrzej Raczkowski bf9467ad7b
Bump cryptography to 36.0.2 (#70438) 2022-04-22 19:50:45 -10:00
Fabian Affolter 19e21cad60
Upgrade voluptuous to 0.13.1 (#70007) 2022-04-14 00:51:39 +03:00
epenet c22a08334c
Bump voluptuous to 0.13.0 (#68897)
* Bump voluptuous to v0.13.0

* Update DEPENDENCY_CONFLICTS

* Update following python_awair bump

* Revert "Update following python_awair bump"

This reverts commit 089bd7b449.

* Revert "Update DEPENDENCY_CONFLICTS"

This reverts commit ddd83212b8.

* Test fail-fast

* Revert "Test fail-fast"

This reverts commit 446e104a24.
2022-04-01 11:42:21 +03:00
Franck Nijhof 91404041e0
Update jinja2 to 3.1.1 (#68988) 2022-03-31 15:54:13 -07:00
kaareseras 1f2bfcf12e
Bump PyJWT from 2.1.0 to 2.3.0 (#68858) 2022-03-30 13:34:40 +02:00
Franck Nijhof cfa8f99b1c
Update jinja2 to 3.1.0 (#68625) 2022-03-24 22:23:03 +01:00
uvjustin a81fa31314
Bump httpx and httpcore (#67438) 2022-03-01 09:17:25 -10:00
Joakim Sørensen d97da2fd49
Bump awesomeversion from 22.1.0 to 22.2.0 (#67107) 2022-02-23 13:37:07 +01:00
Franck Nijhof da3024e162
Upgrade to newer Python pip>=21.0 (#59769) 2022-02-07 15:12:04 +01:00
Marc Mueller d8f167bbac
Remove backports.zoneinfo dependency (#65069) 2022-01-27 09:59:27 -08:00
uvjustin 3b3a8db291
Bump httpx to 0.21.3 and pin requirements for httpcore, anyio, and h11 (#64822) 2022-01-24 10:43:39 +01:00
Marc Mueller c7e05cb44a
Upgrade yarl to 1.7.2 (#64009) 2022-01-12 14:07:11 -10:00
Marc Mueller 1dfb929986
Upgrade async_timeout to 4.0.2 (#64008) 2022-01-13 00:49:31 +01:00
Joakim Sørensen fa15f91dbf
Bump awesomeversion to 22.1.0 (#63676) 2022-01-08 16:25:13 +01:00
Franck Nijhof 469b6a0eb1
Update requests to 2.27.1 (#63552) 2022-01-06 19:15:17 +01:00
Marc Mueller 53496c019c
Start using ParamSpec for decorator functions (#63148) 2022-01-04 18:37:46 +01:00
Paulus Schoutsen 02ad5f3779
Bump voluptuous_serialize to 2.5.0 (#62363) 2021-12-19 22:28:15 -08:00
Franck Nijhof d7bf8a7ac3
Upgrade aiohttp to 3.8.1 (#60778) 2021-12-01 19:45:16 +01:00
Joakim Sørensen dc98791963
Bump awesomeversion from 21.10.1 to 21.11.0 (#60401) 2021-11-26 12:06:50 +01:00
uvjustin bb731fad5d
Bump httpx from 0.19.0 to 0.21.0 (#59723)
* Bump httpx from 0.19.0 to 0.21.0

* Bump respx from 0.17.0 to 0.19.0
2021-11-18 18:11:46 +08:00
Simone Chemelli 5fc51130ea
Replace util.get_local_ip in favor of components.network.async_get_source_ip() - part 4 (#58669)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-15 09:18:57 -08:00
J. Nick Koston 96f7b0d910
Use atomicwrites for mission critical core files (#59606) 2021-11-15 11:19:31 +01:00
J. Nick Koston 9769a8c08e
Revert "Bump async_timeout to 4.0.1" (#59601) 2021-11-12 23:47:39 -08:00
J. Nick Koston 8de0c7204a
Bump async_timeout to 4.0.1 (#59565) 2021-11-11 21:13:15 -08:00
Pascal Vizeli 6636287c59
Bump cryptography 35.0.0 (#59541) 2021-11-11 18:27:22 +01:00
Franck Nijhof 1910c0566c
Upgrade jinja2 to 3.0.3 (#59468) 2021-11-10 11:04:42 +01:00
J. Nick Koston 10d6247fee
Bump to aiohttp 3.8.0 (#58974) 2021-11-04 10:07:50 -05:00
Joakim Sørensen 23e362faf3
Bump awesomeversion from 21.8.1 to 21.10.1 (#58258) 2021-10-23 14:00:18 +02:00
Franck Nijhof 5cd2167924
Upgrade pyyaml to 6.0 (#57648) 2021-10-14 09:29:31 +02:00
Franck Nijhof 3645568dcc
Upgrade jinja2 to 3.0.2 (#57095) 2021-10-05 11:03:51 +02:00
Fabian Affolter 44a4507b51
Upgrade requests to 2.26.0 (#56683)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-26 21:44:28 -05:00
Fabian Affolter 115d34f55a
Set certifi to >=2021.5.30 (#56679)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-26 21:19:30 -05:00
Fabian Affolter 2326e3ed94
Upgrade voluptuous to 0.12.2 (#56680) 2021-09-26 18:59:00 +02:00
Fabian Affolter a0a359e2ef
Upgrade ciso8601 to 2.2.0 (#56678) 2021-09-26 14:47:29 +02:00
Pascal Vizeli 7698c179ac
Upgrade cryptography to 3.4.8 (#56481)
* Upgrade cryptography to 3.4.8

* Fix file
2021-09-21 11:06:52 +02:00
Ruslan Sayfutdinov a9ed4fa405
Bump awesomeversion to 21.8.1 (#55817) 2021-09-11 11:40:46 -07:00
Ruslan Sayfutdinov 7195b8222b
Bump PyJWT to 2.1.0 (#55911) 2021-09-07 20:59:02 -07:00
Paulus Schoutsen 19c54b8cbf
Drop unused ruamel (#55672) 2021-09-03 22:17:10 -07:00
J. Nick Koston 6f75a853f8
Bump httpx to 0.19.0 (#55106)
* Bump httpx to 0.19.0

* regen constraints
2021-08-23 20:27:53 -07:00
J. Nick Koston 0ce071e0a4
Bump httpx to 0.18.2 (#53257) 2021-07-20 21:47:13 -07:00
Paulus Schoutsen f3b2624be3
Pin jinja (#51434) 2021-06-03 23:12:39 +02:00
Matt Zimmerman e964c607a3
jinja2.contextfilter decorator renamed to pass_context (#51007)
* jinja2.contextfilter decorator renamed to pass_context

* bump jinja2 dependency
2021-05-24 17:38:37 +02:00
Joakim Sørensen 2f10f59717
Block custom integrations with missing or invalid version (#49916) 2021-05-17 15:48:41 +02:00
Paulus Schoutsen f8584c3ded
Use zoneinfo instead of dateutil (#50387)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-05-10 08:32:29 -07:00
Franck Nijhof 3745056751
Upgrade attrs to 21.2.0 (#50374) 2021-05-09 22:13:09 +02:00
J. Nick Koston bf2d40adfe
Migrate from pytz to python-dateutil (#49643)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-05-07 22:46:26 -07:00
J. Nick Koston dcb5b9f8b5
Bump httpx to 0.18.0 and respx to 0.17.0 (#49805) 2021-04-28 11:22:09 +02:00
FMKaiba 09eb74fd9d
Upgrade Astral to 2.2 (#48573) 2021-04-02 00:29:08 +02:00
J. Nick Koston 79af18a8ab
Bump httpx to 0.17.1 (#48388)
* Bump httpx to 0.17.1

* git add

* typing

* add test

* tweak
2021-03-27 09:02:01 +01:00
Franck Nijhof efe415f225
Upgrade aiohttp to 3.7.4.post0 (#47627) 2021-03-08 23:18:55 +01:00
Oliver 520c4a8ee3
Update attrs to 20.3.0 (#47642) 2021-03-08 11:49:54 -10:00
Paulus Schoutsen 3a3c12bb17
Upgrade aiohttp to 3.7.4 (#47077) 2021-02-26 09:16:11 +01:00
Fabian Affolter 0ef16dd563
Set awesomeversion to 21.2.3 (#46989) 2021-02-24 16:43:09 +01:00
Franck Nijhof 52a9a66d0f
Upgrade cryptography to 3.3.2 (#46759) 2021-02-18 10:30:54 -10:00
Joakim Sørensen 56b8e82a69
Bump awesomeversion from 21.2.0 to 21.2.2 (#45993) 2021-02-04 16:45:59 +01:00
Joakim Sørensen 06e6005fbb
Add warning to custom integrations without version (#45919)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-02-04 09:59:41 +01:00
Fabian Affolter e9b2d33ad8
Upgrade pytz to >=2021.1 (#45839) 2021-02-02 15:18:58 +01:00
Fabian Affolter 7ff4281b6d
Upgrade jinja2 to >=2.11.3 (#45843) 2021-02-02 15:10:54 +01:00
Paulus Schoutsen b74cbb2a59
Bump crpytography to 3.3.1 (#45691) 2021-01-29 10:33:44 +01:00
Fabian Affolter e4a7692610
Upgrade pyyaml to 5.4.1 (CVE-2020-14343) (#45624) 2021-01-28 12:05:09 +01:00
Pascal Vizeli e1427c45f2
Bump aioHTTP 3.7.3 - YARL 1.6.3 (#45180) 2021-01-15 13:19:22 +01:00
Josef Schlehofer f240106189
Upgrade requests to 2.25.1 (#44989) 2021-01-09 20:02:50 +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
Fabian Affolter c4b11322c8
Updated certifi to >=2020.12.5 (#44701) 2021-01-01 13:07:07 +01:00
Fabian Affolter 61f137c7c6
Upgrade pytz to >=2020.5 (#44702) 2021-01-01 00:38:38 +01:00
Philip Allgaier 18736dbebf
Bump voluptuous to 0.12.1 (#44002)
* Bump voluptuous to 0.12.1

* Adjust MQTT climate test to new error msg
2020-12-07 02:49:36 +01:00
Martin Hjelmare 434cec7a88
Pin pip < 20.3 (#43771) 2020-11-30 19:38:39 +01:00
Philip Allgaier 7280dbd431
Bump requests to 2.25.0 (#43279) 2020-11-16 12:27:42 +01:00