Commit graph

219 commits

Author SHA1 Message Date
Franck Nijhof
35e81cf982
Update aiohttp to 3.8.3 () 2022-11-28 20:42:10 +01:00
uvjustin
9390359fe3
Bump httpx to 0.23.1 () 2022-11-26 10:04:22 -10:00
J. Nick Koston
4b89d087bb
Bump home-assistant-bluetooth to 1.8.1 ()
changelog: https://github.com/home-assistant-libs/home-assistant-bluetooth/compare/v1.8.0...v1.8.1
2022-11-16 23:08:17 +02:00
J. Nick Koston
682187541f
Move BluetoothServiceInfoBleak to home_assistant_bluetooth () 2022-11-15 14:00:52 -06:00
Franck Nijhof
7556f2b84e
Update cryptography to 38.0.3 () 2022-11-03 11:18:25 +01:00
Franck Nijhof
d65e639f00
Update orjson to 3.8.1 () 2022-10-26 12:40:15 +02:00
Marc Mueller
8d4c32e106
Update pip constraint to 22.4 () 2022-10-16 12:01:11 +02:00
J. Nick Koston
d12cbab6c4
Bump bleak to 0.19.0 () 2022-10-15 13:57:23 -04:00
Marc Mueller
647a4ac131
Update typing-extensions constraint to >=4.4.0 () 2022-10-08 18:32:46 +03:00
Paulus Schoutsen
f41b69e19e
Bump cryptography to 38 () 2022-09-25 17:39:42 -04:00
Franck Nijhof
a81bb10ff9
Update yarl to 1.8.1 () 2022-09-21 13:59:42 +02:00
Franck Nijhof
774d5138ca
Update PyJWT to 2.5.0 () 2022-09-20 20:17:49 +02:00
Joakim Sørensen
a38d998000
Bump awesomeversion from 22.8.0 to 22.9.0 () 2022-09-15 14:05:34 +02:00
Joakim Sørensen
0caf998547
Bump awesomeversion from 22.6.0 to 22.8.0 () 2022-08-28 14:52:23 -04:00
Franck Nijhof
b4323108b1
Update cryptography to 37.0.4 () 2022-08-17 09:41:50 +02:00
Franck Nijhof
33bf94c4b2
Update orjson to 3.7.11 () 2022-08-04 22:37:57 +03:00
Marc Mueller
c0e6852077
Update pip version range to 22.3 () 2022-07-24 21:11:30 +02:00
Franck Nijhof
2db8b154c9
Update orjson to 3.7.8 () 2022-07-20 11:39:07 +02:00
J. Nick Koston
ba8a530d19
Use shared bluetooth models for BluetoothServiceInfo () 2022-07-16 21:14:23 -07:00
Franck Nijhof
d697bb53c5
Update lru-dict to 1.1.8 () 2022-07-11 00:11:43 +02:00
Paulus Schoutsen
010b18be34
Bump atomicwrites () 2022-07-08 14:17:56 -07:00
Franck Nijhof
4261595078
Update orjson to 3.7.7 () 2022-07-07 11:00:34 +02:00
J. Nick Koston
332cf3cd2d
Resolve and caches paths for CachingStaticResource in the executor () 2022-07-06 13:49:48 -05:00
Franck Nijhof
42533ebbb3
Update requests to 2.28.1 () 2022-06-29 20:40:58 -05:00
J. Nick Koston
df357962b3
Bump orjson to 3.7.5 () 2022-06-27 21:59:08 -07:00
Joakim Sørensen
a94579107c
Bump awesomeversion from 22.5.2 to 22.6.0 () 2022-06-27 11:38:40 +02:00
J. Nick Koston
8b067e83f7
Initial orjson support take 3 ()
* Initial orjson support take 2

Still need to work out problem building wheels

--

Redux of  /  Now possible since the following is solved:
 (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 ()
* 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 ()" ()
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 () 2022-05-31 12:18:11 -07:00
Joakim Sørensen
9fe4aef4bc
Bump awesomeversion from 22.5.1 to 22.5.2 () 2022-05-27 14:37:19 -07:00
uvjustin
01b5f98414
Bump httpx to 0.23.0 ()
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) () 2022-05-23 11:58:19 +02:00
Franck Nijhof
514e7708b3
Update PyJWT to 2.4.0 () 2022-05-16 07:38:01 -07:00
Joakim Sørensen
f7a2a6ea21
Bump awesomeversion from 22.2.0 to 22.5.1 () 2022-05-16 12:26:54 +02:00
Franck Nijhof
0a9a86f973
Update jinja2 to 3.1.2 () 2022-05-13 13:38:20 +02:00
Andrzej Raczkowski
bf9467ad7b
Bump cryptography to 36.0.2 () 2022-04-22 19:50:45 -10:00
Fabian Affolter
19e21cad60
Upgrade voluptuous to 0.13.1 () 2022-04-14 00:51:39 +03:00
epenet
c22a08334c
Bump voluptuous to 0.13.0 ()
* 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 () 2022-03-31 15:54:13 -07:00
kaareseras
1f2bfcf12e
Bump PyJWT from 2.1.0 to 2.3.0 () 2022-03-30 13:34:40 +02:00
Franck Nijhof
cfa8f99b1c
Update jinja2 to 3.1.0 () 2022-03-24 22:23:03 +01:00
uvjustin
a81fa31314
Bump httpx and httpcore () 2022-03-01 09:17:25 -10:00
Joakim Sørensen
d97da2fd49
Bump awesomeversion from 22.1.0 to 22.2.0 () 2022-02-23 13:37:07 +01:00
Franck Nijhof
da3024e162
Upgrade to newer Python pip>=21.0 () 2022-02-07 15:12:04 +01:00
Marc Mueller
d8f167bbac
Remove backports.zoneinfo dependency () 2022-01-27 09:59:27 -08:00
uvjustin
3b3a8db291
Bump httpx to 0.21.3 and pin requirements for httpcore, anyio, and h11 () 2022-01-24 10:43:39 +01:00
Marc Mueller
c7e05cb44a
Upgrade yarl to 1.7.2 () 2022-01-12 14:07:11 -10:00
Marc Mueller
1dfb929986
Upgrade async_timeout to 4.0.2 () 2022-01-13 00:49:31 +01:00
Joakim Sørensen
fa15f91dbf
Bump awesomeversion to 22.1.0 () 2022-01-08 16:25:13 +01:00