Commit Graph

836 Commits (4d673278c7a6405a21201015490c8d1dc433b872)

Author SHA1 Message Date
Joakim Sørensen 2f60db6f80
Pin charset-normalizer to 2.0.12 (#74104) 2022-06-28 18:20:56 +02: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
Zack Barett 307666da7f
Bump Frontend to 20220624.0 (#73938) 2022-06-23 22:51:31 -05:00
J. Nick Koston 3d59088a62
Bump sqlalchemy to 1.4.38 (#73916)
Changes: https://docs.sqlalchemy.org/en/14/changelog/changelog_14.html#change-1.4.38
2022-06-23 14:13:42 -04: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
Pascal Vizeli 6cf9b22b5a
Python 3.10 / Base image 2022.06.01 (#73830)
* Python 3.10 / Base image 2022.06.01

* Update requirements

* push opencv

* we don't need numpy on core for now

* Remove unused ignore

Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-06-22 12:04:39 -05:00
Steven Looman 26641fc90d
Bump async-upnp-client to 0.31.2 (#73712) 2022-06-19 12:59:37 -05:00
J. Nick Koston d25a5f3836
Bump zeroconf to 0.38.7 (#73497) 2022-06-14 12:16:30 -10: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
Steven Looman 6c9408aef5
Bump async-upnp-client==0.31.1 (#73135)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-06 11:46:52 -10:00
Bram Kragten d1a8f1ae40
Update frontend to 20220601.0 (#72855) 2022-06-02 00:04:14 +02:00
J. Nick Koston e874a04319
Bump sqlalchemy to 1.4.37 (#72809)
Fixes a bug where reconnects might fail with MySQL 8.0.24+

Changelog: https://docs.sqlalchemy.org/en/14/changelog/changelog_14.html#change-1.4.37
2022-06-01 10:56:05 +02:00
Christopher Bailey 133cb7ccef
Add package constraint for pydantic (#72799)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-31 20:04:35 -10: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
Bram Kragten eda2be8489
Update frontend to 20220531.0 (#72775) 2022-05-31 11:30:33 -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
Bram Kragten 93f0945772
Update frontend to 20220526.0 (#72567) 2022-05-26 20:48:52 -07:00
Zack Barett a947c80f30
Bump Frontend to 20220525.0 (#72496) 2022-05-25 20:42:27 +02:00
Zack Barett b9baaf573c
Bump Frontend to 20220524.0 (#72467) 2022-05-24 18:54:11 -07:00
Zack Barett 1eaf3bb817
Bump Frontend to 20220523.0 (#72397) 2022-05-23 17:01:07 -07:00
Franck Nijhof 53d7eaa1a6
Update Pillow to 9.1.1 (#72376) 2022-05-23 20:50:39 +02:00
Franck Nijhof ea05bd8c2e
Allow for using pip 22.1(.x) (#72348) 2022-05-23 11:58:19 +02:00
Steven Looman 01c211a7f9
Bump async-upnp-client to 0.30.1 (#72332)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-23 02:06:09 -05:00
Michael Chisholm dd0f9350ac
Update async-upnp-client to 0.30.0 (#72269) 2022-05-21 09:18:47 -05:00
Paulus Schoutsen eac872331a
Bump frontend to 20220521.0 (#72257) 2022-05-20 18:06:31 -07:00
Paulus Schoutsen 18b40990a2
Bump frontend to 20220518.0 (#72106) 2022-05-18 13:22:30 -07:00
Bram Kragten d22472208f
Update frontend to 20220516.0 (#71964) 2022-05-16 21:41:43 +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
Allen Porter cd2898886b
Upgrade grpcio to 1.46.1 (#71865) 2022-05-14 12:24:52 -07:00
Franck Nijhof 0a9a86f973
Update jinja2 to 3.1.2 (#71780) 2022-05-13 13:38:20 +02:00
Paulus Schoutsen 49d13b9981
Bump frontend to 20220504.1 (#71504) 2022-05-07 20:57:57 -07:00
J. Nick Koston 92f46a48c3
Bump zeroconf to 0.38.6 (#71447) 2022-05-07 00:01:05 +03:00
Franck Nijhof d95113c8f2
Pin grpcio-status to 1.45.0 (#71293) 2022-05-04 16:56:29 +02:00
Bram Kragten 309d8d70b1
Update frontend to 20220504.0 (#71284) 2022-05-04 14:19:16 +02:00
Zack Barett c9d49ac9e4
Bump frontend to 20220503.0 (#71262) 2022-05-03 11:51:07 -07:00
Paulus Schoutsen fbc048f07b
Bump frontend to 20220502.0 (#71221) 2022-05-02 15:39:05 -07:00
J. Nick Koston 2e20ec21c4
Bump zeroconf to 0.38.5 (#71160) 2022-05-01 18:49:17 +01:00
Zack Barett 85dbfa75ef
Frontend bump 20220429.0 (#71085) 2022-04-29 16:09:08 -07:00
J. Nick Koston 37384f7eb3
Bump sqlalchemy to 1.4.36 (#71039) 2022-04-28 21:32:46 -07:00
Zack Barett 7e8c6d563f
Frontend Bump to 20220428.0 (#71029) 2022-04-28 14:24:04 -07:00
Paulus Schoutsen 5f63944142
Bump frontend to 20220427.0 (#70841) 2022-04-26 22:45:39 -07:00
Marc Mueller 0959ee4353
Pin backoff <2.0 (#70817) 2022-04-26 22:12:48 +02:00
Zack Barett 083e40a00d
Frontend Bump to 20220425.0 (#70719) 2022-04-25 17:03:41 -07:00
J. Nick Koston 5224cf5968
Update async_upnp_client to 0.29.0 (#70604) 2022-04-25 09:53:35 -07:00
Paulus Schoutsen 56362e5d80
Bump frontend to 20220424.0 (#70608) 2022-04-24 15:59:52 -07:00
Steven Looman 776565c23f
Bump async-upnp-client to 0.28.0 (#70582) 2022-04-24 08:46:13 -10:00