Commit Graph

848 Commits

Author SHA1 Message Date
Franck Nijhof 792c825699
Update numpy to 1.23.1 (#74851) 2022-07-10 14:58:05 -07:00
Franck Nijhof 80727ff952
Update pyudev to 0.23.2 (#74859) 2022-07-09 20:30:22 -05:00
Paulus Schoutsen 010b18be34
Bump atomicwrites (#74758) 2022-07-08 14:17:56 -07:00
Bram Kragten 29cbd9d469
Update frontend to 20220707.0 (#74625) 2022-07-07 16:19:56 +02:00
Franck Nijhof 4261595078
Update orjson to 3.7.7 (#74581) 2022-07-07 11:00:34 +02:00
Franck Nijhof 113ccfe6af
Update Home Assistant Frontend to 20220706.0 (#74520)
Bump Home Assistant Frontend to 20220706.0
2022-07-06 19:31:57 +02:00
Zack Barett 87d7c024bf
Bump Frontend to 20220705.0 (#74467) 2022-07-05 19:43:10 +02:00
Franck Nijhof b5387ed769
Update Pillow to 9.2.0 (#74371) 2022-07-04 13:16:01 +02:00
Zack Barett 382b5d5073
Bump frontend to 20220630.0 (#74266) 2022-06-30 11:01:23 -07:00
Franck Nijhof 105b1b9d58
Update numpy to 1.23.0 (#74250) 2022-06-30 10:04:59 -07:00
Franck Nijhof 42533ebbb3
Update requests to 2.28.1 (#74210) 2022-06-29 20:40:58 -05:00
Zack Barett 466ba47b35
Frontend bump to 20220629.0 (#74180) 2022-06-29 12:10:21 -05:00
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