Commit Graph

111 Commits (c91417e71f765e01f43722c6b0f247d650b67f01)

Author SHA1 Message Date
GitHub Action 0d1f476bee [ci skip] Translation update 2022-12-01 00:33:36 +00:00
epenet cbf8a41eed
Add ability to edit sensors in scrape config flow (#82926)
* Add ability to edit sensors in scrape config flow

* Fix docstring

* Update homeassistant/components/scrape/config_flow.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* docstring

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-11-30 14:16:28 +01:00
epenet 92fef0f2ba
Improve resource validation in scrape config flow (#82965)
* Improve resource validation in scrape

* Coverage
2022-11-30 14:05:01 +01:00
epenet 98f263c289
Make SchemaFlowFormStep functions async (#82962)
* Make validate async in SchemaOptionsFlowHandler

* Adjust group

* Adjust tests

* Move all to async

* Adjust integrations

* Missed an integration

* Missed one

* Rebase to fix conflict
2022-11-30 12:26:52 +01:00
GitHub Action 197e71203b [ci skip] Translation update 2022-11-30 00:26:16 +00:00
epenet 23831d746e
Add ability to remove sensors in scrape config flow (#82912)
* Add ability to remove sensors in scrape config flow

* Add test

* Cleanup registry

* Cleanup

* Adjust comments

* Fix bad cleanup
2022-11-29 13:36:33 +01:00
epenet 53e05dec02
Add ability to add sensors in scrape config flow (#82802)
* Add ability to add sensors in scrape config flow

* Fix menu

* Adjust comment

* Use sentinel

* Adjust docstring
2022-11-29 10:13:38 +01:00
GitHub Action 230b50d099 [ci skip] Translation update 2022-11-29 00:26:01 +00:00
GitHub Action 4becb9454b [ci skip] Translation update 2022-11-27 00:26:07 +00:00
GitHub Action 797dc51bc5 [ci skip] Translation update 2022-11-26 00:22:30 +00:00
epenet a4dbb9a24e
Add handler to validate_user_input (#82681)
* Add handler to validate_user_input

* Adjust group config flow
2022-11-25 09:29:54 +01:00
GitHub Action f3b3193f7a [ci skip] Translation update 2022-11-25 00:24:19 +00:00
epenet 9f9114cb4a
Simplify SchemaFlowStep typing (#82661)
* Simplify SchemaFlowStep typing

* Adjust accuweather
2022-11-24 21:59:41 +01:00
G Johansson a63581b5c8
Add unique id for Scrape config entry entities (#82508)
* scrape unique id

* fix uuid str

* add back UoM
2022-11-24 21:12:47 +01:00
epenet caa99ea9fb
Allow next_step to be a string (#82647)
* Allow next_step to be a string

* Adjust docstrings

* Add test
2022-11-24 18:55:53 +01:00
GitHub Action 33d391a110 [ci skip] Translation update 2022-11-24 00:26:32 +00:00
GitHub Action eaf6d43508 [ci skip] Translation update 2022-11-23 00:26:26 +00:00
GitHub Action 0be2a3f182 [ci skip] Translation update 2022-11-22 00:26:32 +00:00
epenet aa443842b7
Fix incorrect type hints in scrape (#82502) 2022-11-21 17:38:23 -05:00
G Johansson b3dd59f202
Add config flow to Scrape (#81193)
* Scrape take 2

* cleanup

* new entity name

* Fix name, add tests

* Use FlowResultType

* Add test abort

* hassfest

* Remove not needed test

* clean

* Remove config entry and implement datacoordinator

* fix codeowners

* fix codeowners

* codeowners reset

* Fix coordinator

* Remove test config_flow

* Fix tests

* hassfest

* reset config flow

* reset strings

* reset sensor

* Reconfig

* Fix tests

* coverage

* Remove coverage

* Remove print

* Add config flow

* Fix config flow

* Add back init

* Add entry to sensor

* float to int

* Fix SelectSelector

* Add tests for config entry to existing

* Test config flow

* Fix test reload

* Fix rebase

* Fix strings

* clean init

* Clean test_sensor

* Align sensor setup entry

* Add error to strings

* review changes

* clean tests

* Add back options flow

* review changes

* update_listener

* Add tests

* Remove duplicate abort

* strings

* sensors to sensor

* review changes

* more review changes

* clarify test payload

* fixture name
2022-11-21 21:39:39 +01:00
GitHub Action 3bea04e387 [ci skip] Translation update 2022-11-21 00:26:41 +00:00
GitHub Action fe5246fb6f [ci skip] Translation update 2022-11-19 00:26:11 +00:00
epenet 4cce359960
Fix legacy scrape scan interval (#81764)
* Fix legacy scrape scan interval

* Adjust init

* Adjust tests

* Clearer default
2022-11-15 13:39:30 +01:00
GitHub Action e2788f8321 [ci skip] Translation update 2022-11-07 00:26:17 +00:00
GitHub Action c7fc51cfa5 [ci skip] Translation update 2022-11-04 00:29:52 +00:00
epenet d385a85ccb
Cleanup schema validation in scrape sensor (#81419) 2022-11-02 18:46:03 +01:00
G Johansson 93d74cafdc
Fix late review comments for Scrape (#81259)
* Review comments from #74325

* Remove moved test

* Fix init

* Handle no data

* Remove print

* Fix tests

* PlatformNotReady if no data

* Recover failed platform setup

* Fix broken test

* patch context

* reset test init

* Move to platform

* asyncio gather

* Remove duplicate code
2022-11-02 17:52:36 +01:00
GitHub Action 697a81c4a3 [ci skip] Translation update 2022-11-02 00:30:01 +00:00
GitHub Action 0bca9a614c [ci skip] Translation update 2022-11-01 00:33:48 +00:00
epenet 283f8585b8
Adjust scrape coordinator logging (#81299) 2022-10-31 13:21:37 +01:00
GitHub Action e636169878 [ci skip] Translation update 2022-10-31 00:32:43 +00:00
G Johansson 662aee17a6
Scrape move yaml config to integration key (#74325)
* Scrape take 2

* cleanup

* new entity name

* Fix name, add tests

* Use FlowResultType

* Add test abort

* issue

* hassfest

* Remove not needed test

* clean

* Remove config entry and implement datacoordinator

* fix codeowners

* fix codeowners

* codeowners reset

* Fix coordinator

* Remove test config_flow

* Fix tests

* hassfest

* reset config flow

* reset strings

* reset sensor

* next version

* Reconfig

* Adjust sensor

* cleanup sensor

* cleanup init

* Fix tests

* coverage

* Guard against empty sensor

* naming

* Remove coverage

* Review comments

* Remove print

* Move sensor check
2022-10-30 13:02:11 +01:00
epenet 30fe4826ff
Refactor Scrape sensor to inherit TemplateSensor (#81130) 2022-10-28 11:55:53 +02:00
epenet 663c2ef993
Cleanup scrape constants (#81076)
* Cleanup scrape constants

* Adjust comments

* Revert removal of DEFAULT_VERIFY_SSL constant
2022-10-27 18:11:40 +02:00
epenet 3d42a46871
Align Scrape resource model with Rest integration (#81074) 2022-10-27 17:48:35 +02:00
epenet ec4b8c49fe
Add unique_id to scrape (#80581)
* Add unique_id to scrape

* Add tests
2022-10-24 15:14:43 +02:00
epenet 64d6d04ade
Use DataUpdateCoordinator in scrape (#80593)
* Add DataUpdateCoordinator to scrape

* Fix tests
2022-10-24 14:55:57 +02:00
epenet bdfead9095
Fix invalid warning in scrape (#80599) 2022-10-19 23:02:11 +02:00
epenet dc2a87b9ae
Fix invalid type hint in scrape (#80543) 2022-10-19 13:49:01 +02:00
epenet ddba653158
Add new codeowners to scrape (#80569) 2022-10-18 19:29:11 -06:00
GitHub Action f58e1513e2 [ci skip] Translation update 2022-10-08 00:29:46 +00:00
GitHub Action 3875ce6c9e [ci skip] Translation update 2022-09-24 00:31:54 +00:00
GitHub Action bcf01e8873 [ci skip] Translation update 2022-09-15 00:29:28 +00:00
GitHub Action 23faf8024e [ci skip] Translation update 2022-09-14 00:28:24 +00:00
GitHub Action 035cd16a95 [ci skip] Translation update 2022-08-30 00:30:17 +00:00
GitHub Action 296e52d918 [ci skip] Translation update 2022-08-21 00:24:25 +00:00
GitHub Action ff3fd4c29d [ci skip] Translation update 2022-08-16 00:30:51 +00:00
GitHub Action 519d478d61 [ci skip] Translation update 2022-08-11 00:26:23 +00:00
GitHub Action cb46441b74 [ci skip] Translation update 2022-08-05 00:28:51 +00:00
GitHub Action 81e3ef03f7 [ci skip] Translation update 2022-08-02 00:27:42 +00:00