Commit Graph

73 Commits

Author SHA1 Message Date
db5ec533a4 Add graphql limits to summary (#3831) 2024-06-27 15:20:19 +02:00
961d7ee23c Always write the content (#3827) 2024-06-26 16:24:59 +02:00
c00e522770 Always generate summary (#3817) 2024-06-25 13:32:48 +02:00
53db143aad Bump frontend to 20240620075826 (#3796) 2024-06-20 10:54:56 +02:00
5efaa0338e Install the frontend wheel from GitHub (#3778) 2024-06-18 08:24:59 +02:00
449c3b74a7 Remove compatibility with unsupported core versions (#3738)
* Remove compatibility with unsupported core versions

* Remove more backwards compatibility

---------

Co-authored-by: Joakim Sørensen <ludeeus@ludeeus.dev>
2024-05-29 19:30:17 +02:00
1faa1a346c Extend summary content (#3740)
* Add summary to generator

* update snapshot

* Extend summary content
2024-05-29 19:24:59 +02:00
1addca2ece Add summary to generator (#3737)
* Add summary to generator

* update snapshot
2024-05-29 19:10:31 +02:00
883e0ce932 Remove code paths only used in non-experimental mode (#3728)
* Remove code paths only used in non-experimental mode

* Remove experimental setting from diagnostics

* Update tests

* Address review comments

* Remove experimental flag from hacs/info WS command
2024-05-29 15:03:47 +02:00
dfaaf21691 Bump frontend to 20240528140736 (#3733) 2024-05-29 14:30:25 +02:00
17c2236bb8 Only ship one frontend (#3727) 2024-05-27 18:17:19 +02:00
9d0e0cdad5 Bump experimental frontend to 20240527114629 (#3726) 2024-05-27 14:07:29 +02:00
e643a32eb5 Bump frontend to 20240522121116 (#3698) 2024-05-22 14:47:38 +02:00
b8199f3124 Set a stricter version of home-assistant to use in tests (#3627)
* Set a stricter version of home-assistant to use in tests

* change min async-timeout

* chain requirement files

* lint

* remove

* add home-assistant-frontend to core_dev script

* Update .github/workflows/lint.yaml
2024-04-15 08:08:20 +02:00
0747cc514d Install pre-commit as part of setup (#3634) 2024-04-15 07:54:00 +02:00
e7929b75a1 Validate repo data fetched from data-v2.hacs.xyz (#3594)
* Validate repo data fetched from data-v2.hacs.xyz

* Allow extra keys when downloading HACS data

* Rename data validation maps

* Lint

* Add mandatory keys to data-v2 fixtures

* Add test

* Add snapshots

* Move validation to data client

* Tweak

* Tweak

* Remove extra keys when validating fetched critical/removed repos

* lint

---------

Co-authored-by: Joakim Sørensen <ludeeus@ludeeus.dev>
Co-authored-by: ludeeus <joasoe@gmail.com>
2024-04-12 13:09:25 +02:00
a742ff4345 Adjust pytest configuration (#3611) 2024-04-11 20:33:30 +02:00
3f09f5fc38 Refactor testing (#3357)
* init more tests

* Update snapshots

* update fixtures

* sort files

* Remove tests before running hassfest

* fix json

* more test adjustments

* lint

* add psutil_home_assistant test requirement

* sqlalchemy

* fnv_hash_fast

* more

* PIL

* Pillow

* janus

* hass_frontend

* home-assistant-frontend

* full entry for newer

* lint

* get entity for update test

* renames

* pin test packages

* single t

* updates

* fix stuff

* store entities and ws for setup test

* remove base

* Add basic fixtures for all categories

* Use WS command to register custom repository

* lint

* cleanup

* unused import

* Test addons and core

* start generate tests

* Output all calls to proxy

* change messaging

* lint

* remove old

* plugin

* lint

* try with minor_version first

* theme

* lint

* Setup all categories for tests

* lint

* Cleanup stale

* Remove unnecessary test files

* Remove aresponses

* remove proxy_session usage

* more!

* remove backup arg

* fix

* lint

* Remove autouse from setup_integration fixture

* add entities to snapshots

* Fix HACS test manifest

* filter calls

* replace diagnostics test

* Fix sorting

* better output

* adjust resp

* ignore minor_version

* replace print in test

* add appdaemon

* cleanup

* lint

* Add test for removing repositories

* lint

* update output

* extend generate

* More usage of common test data

* data client test

* output

* add python_script tests

* typo

* enable all

* config_flow tests

* remaining generate

* use xfail

* lint

* lint

* sort

* adjust

* cover bad cases

* one more

* update snapshots

* init better action testing

* track loader.async_suggest_report_issue

* lint

* Sort action results

* lint...

* Guard async_suggest_report_issue

* lint

* Run dev tests against 3.12 as well

* change names

* move report check to fixture

* fix version selector

* Add setuptools to base

* fix check_report_issue check

* Use set_state to bust cached propery

* Use async_test_home_assistant test helpers from homeassistant core repo

* Lint

* Update snapshots

* Align with HA Core 2024.4.0

* Fix test_update_repository_entity

* Fix import

* Fix test_hacs_action_integration

* Disable testing dev core with Python 3.11

* Allow more issues

* Use Python 3.12 run in codecov

* Enable config flow tests

* Adjust tests

* Update generate_category_data tests

* Clear stored responses after usage

* Rename tests/z_action to tests/action

* Update snapshot

* Update action test

* Remove cleanups

* use with expectation

* fix typing

* Use python version from matrix

* Test option flow

* Lint

* Update snapshots

* Use token constant

---------

Co-authored-by: Erik <erik@montnemery.com>
2024-04-10 16:15:35 +02:00
a09d368097 Add validation when generating data (#3593)
* Add validation when generating data

* Fix test

* Stricter exception

* useless type

* Fix tests for real this time

* add back __future__ import
2024-04-09 15:05:33 +02:00
ebf0f4c936 Add script to validate output of generated data (#3589)
* Add script to validate output of generated data

* Expand and humanize error

* lint

* linit

* Simplify check

* Add usage if unexpected number of arguments
2024-04-09 12:44:07 +02:00
7d46a52de0 Bump frontend to 20240119163101 (#3467) 2024-01-19 21:51:59 +01:00
25774c1b10 Bump frontend to 20240114080055 (#3455) 2024-01-14 10:12:25 +01:00
fa5af7e966 Bump frontend to 20240113104905 (#3450) 2024-01-13 14:54:13 +01:00
fab0e91c79 Handle HomeAssistant require config_dir in dev (#3233) 2023-08-25 13:54:13 +02:00
e1586ab831 Do not skip update if different counts 2023-07-23 13:33:08 +00:00
e6b5c32eab Remove legacy-resolver (#3197) 2023-07-18 16:38:29 +02:00
c84f87d87b Revert "Better cleanup of scheduled tasks (#3150)" (#3183)
This reverts commit 8219c8161c.
2023-07-08 09:58:55 +02:00
b034163f43 Fix clear_storage script 2023-06-30 12:21:17 +00:00
544c585c8e Sort keys for diff 2023-06-16 20:35:33 +00:00
ac94e59b96 Add diff files 2023-06-16 16:51:27 +00:00
8219c8161c Better cleanup of scheduled tasks (#3150)
* Better cleanup of scheduled tasks

* Move final write

* Remove hass from QueueManager
2023-06-16 16:33:08 +02:00
6ac1100892 Allow generating data for a single repository (#3160)
* Allow generating data for a single repository

* reinit HacsRepositories

* lint

* annotations
2023-06-16 16:21:39 +02:00
83bde83722 Fix config path for development 2023-05-07 19:11:35 +00:00
f1dadf4446 Move dev config to ./config 2023-04-23 18:59:56 +00:00
2c738c6571 Bump experimental frontend to 20230406083157 2023-04-06 08:49:06 +00:00
643361b002 Bump frontend 2023-04-01 15:45:15 +00:00
d7482db8da Use path instead of proxy for dev frontend (#3097) 2023-04-01 13:32:10 +02:00
7679227095 Store etag for releases (#3075) 2023-02-24 13:41:05 +01:00
6f35eb68ef Force 2023-02-19 15:41:49 +00:00
74934c3f08 Bump black to 23.1.0 and target 3.9 (#3061) 2023-02-11 11:32:20 +01:00
a45f36dcde Update development environment (#3060)
* Update development environment

* lint
2023-02-11 11:24:00 +01:00
b7edcd8c0d Make domain required for integrations (#3026) 2023-01-21 09:14:26 +00:00
11ff833c34 Do not store if missing required keys (#3025) 2023-01-21 10:10:54 +01:00
f44bed99ce Force update if there are missing keys (#3024) 2023-01-21 09:58:19 +01:00
eb86f06ed3 Limit upload action to changed categories (#3005) 2023-01-15 10:56:47 +01:00
7c9a8e3f63 Handle renamed and archived repositories in generator (#2999)
Handle renamed and srchived repositories in generator
2023-01-14 13:33:23 +01:00
49f47e3dc6 Add etag support for data client (#2997) 2023-01-14 09:39:35 +01:00
fe1cd6a632 Add client_name User Agent to DataClient (#2996) 2023-01-13 17:37:58 +01:00
77fb8a81c7 Use data stored in Cloudflare R2 instead of GitHub API for scheduled refresh (#2991) 2023-01-13 13:39:31 +01:00
49f56c7e4b Time is not needed in the log 2023-01-13 09:53:36 +00:00