Commit graph

117 commits

Author SHA1 Message Date
Marc Mueller
2518fbc973
Update jsonpath to 0.82.2 (#100252) 2023-09-13 01:41:50 +02:00
G Johansson
61c17291fb
Move TemplateEntity to template (#98957)
* Move TemplateEntity to template

* Rename template_entity in helpers
2023-08-24 15:37:04 +02:00
Jan Bouwhuis
a39af8aff9
Fix rest debug logging (#98649)
Correct rest debug logging
2023-08-18 23:03:56 +02:00
G Johansson
268e5244f0
Cleanup ManualTriggerSensorEntity (#98629)
* Cleanup ManualTriggerSensorEntity

* ConfigType
2023-08-18 20:19:17 +02:00
Marc Mueller
063ce9159d
Use asyncio.timeout [o-s] (#98451) 2023-08-15 17:21:49 +02:00
G Johansson
ed18c6a013
Refactor Rest Switch with ManualTriggerEntity (#97403)
* Refactor Rest Switch with ManualTriggerEntity

* Fix test

* Fix 2

* review comments

* remove async_added_to_hass

* update on startup
2023-08-15 11:43:47 +02:00
epenet
c62081430b
Refactor JSON attribute parsing in rest (#97526)
* Refactor JSON attribute parsing in rest

* Early return
2023-08-11 11:00:55 +02:00
G Johansson
aacb8aecfc
Refactor Rest Sensor with ManualTriggerEntity (#97396)
* ManualTriggerEntity for rest sensor

* add availability test

* review comments

* last fixes
2023-08-10 21:46:56 +02:00
G Johansson
4531dbbe62
Refactor Rest Binary sensor with ManualTriggerEntity (#97400)
* Refactor Rest Binary sensor w/ ManualTriggerEntity

* test availability

* review comments

* Use super

* Fix config
2023-08-10 12:59:23 +02:00
Marc Mueller
91a83e1ad2
Fix httpx DeprecationWarning (#97625) 2023-08-02 20:29:36 +02:00
epenet
787486b68d
Remove myself from rest codeowners (#97528) 2023-07-31 12:50:44 +02:00
Joost Lekkerkerker
b367c95c81
Add more common translations (#96429)
* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations
2023-07-12 22:00:05 -04:00
Franck Nijhof
62fe4957c9
Migrate integration services (Q-S) to support translations (#96378) 2023-07-12 01:18:22 +02:00
Franck Nijhof
3e85a29b86
Move overlapping pylint rules to ruff, disable mypy overlap (#94359) 2023-06-27 17:42:46 +02:00
Marc Mueller
86792fcc2f
Update mypy to 1.4.0 (#94987) 2023-06-21 16:12:51 +02:00
epenet
580b09d0f2
Refactor XML parsing in rest (#94268)
* Refactor XML parsing in rest

* Adjust caplog check

* Adjust

* Rename

* Simplify
2023-06-15 09:15:25 +02:00
epenet
949e8f7b13
Migrate rest notify to httpx (#90769) 2023-05-11 08:26:16 +01:00
epenet
802e907a35
Migrate rest switch to httpx (#90768) 2023-05-05 14:43:39 +02:00
epenet
603aa759d3
Fix KeyError in rest (#92464) 2023-05-05 09:05:31 +02:00
Michael
323d16cc21
Add ssl_cipher_list option to rest (#91078) 2023-04-15 11:22:41 -10:00
Michael
0916701a0b
Catch ssl errors in rest (#91074)
* catch ssl.SSLError

* add test

* fail setup on ssl error

* adjust tests
2023-04-12 06:51:41 +02:00
epenet
dfa0b5439b
Add myself to rest code owners (#90770) 2023-04-04 11:36:36 +02:00
nono
9cab05c4b9
Fix Rest switch init was not retrying if unreachable at setup (#90627)
* Fix Rest switch init was not retrying if unreachable at setup

* pass error log to platformnotready
prevents spamming the same message in logs.
2023-04-01 17:45:24 +02:00
Olivier Ouellet
1c465b5ad0
Add encoding configuration setting to REST and Scape (#90254)
* Create new config parameter for default character encoding if no character encoding is declared

* Changes suggested by gjohansson-ST

* Added config flow for scape

* Removed "character"

* Change to create_async_httpx_client

* Remove CONF_ENCODING from Scrape SENSOR_SCHEMA

* Debug scrape test
2023-03-28 12:42:31 +02:00
epenet
ba23816a0c
Inverse json import logic (#88099)
* Fix helpers and util

* Adjust components

* Move back errors

* Add report

* mypy

* mypy

* Assert deprecation messages

* Move test_json_loads_object

* Adjust tests

* Fix rebase

* Adjust pylint plugin

* Fix plugin

* Adjust references

* Adjust backup tests
2023-02-16 11:37:57 +01:00
Erik Montnemery
5dfb9cddd6
Sort manifests 8 (#87029) 2023-02-08 20:13:46 +01:00
epenet
b854dd99fc
Add rest to strict-typing (#86149)
* Add type hints to rest notify

* Add rest to strict-typing
2023-02-07 15:48:16 +01:00
epenet
ca8cc284ed
Add hints to get_service in rest (#86703) 2023-01-26 11:08:06 +01:00
epenet
1baa5c12c0
Fix rest schema (#81857) 2022-11-11 10:08:26 -06:00
epenet
c585817e67
Adjust REST schema validation (#81723)
fixes undefined
2022-11-08 11:18:58 +01:00
epenet
f479b2385e
Add type hints to rest switch (#81307) 2022-11-07 14:02:49 +01:00
epenet
fee3898f64
Use _attr_is_on in rest (#81305) 2022-10-31 15:36:43 +01:00
epenet
fbc8f0a2cf
Improve type hints in rest integration (#81291) 2022-10-31 14:06:09 +01:00
epenet
3d42a46871
Align Scrape resource model with Rest integration (#81074) 2022-10-27 17:48:35 +02:00
epenet
a70f9b8995
Add type hints to rest integration (#80546) 2022-10-19 14:35:23 +02:00
epenet
599d61a4da
Fix payload in rest (#80544) 2022-10-18 17:15:08 +02:00
Joakim Sørensen
3655958d26
Seperate timeout errors in rest requests (#78710) 2022-09-18 21:38:27 +02:00
Erik Montnemery
c37d294d12
Use reload helper to reload rest component (#78491) 2022-09-15 11:02:37 +02:00
epenet
996bcbdac6
Make EntityComponent generic (#78473) 2022-09-14 14:16:23 -04:00
epenet
a82484d7a7
Use attributes in rest base entity (#77903) 2022-09-07 09:40:52 +02:00
epenet
6f564e4f51
Improve entity type hints [r] (#77874) 2022-09-06 09:47:35 +02:00
Erik Montnemery
146ff83a16
Migrate rest binary_sensor and switch to TemplateEntity (#73307) 2022-06-28 13:53:38 -07:00
J. Nick Koston
9a0b3796d3
Bump xmltodict to 0.13.0 (#73974)
Changelog: https://github.com/martinblech/xmltodict/blob/v0.13.0/CHANGELOG.md
2022-06-26 12:38:17 +02:00
J. Nick Koston
ab30d38469
Switch rest to use the json helper (#73867) 2022-06-22 20:12:48 -05:00
Erik Montnemery
5987266e56
Refactor template entity to allow reuse (#72753)
* Refactor template entity to allow reuse

* Fix schema and default name

* Add tests

* Update requirements

* Improve test

* Tweak TemplateSensor initializer

* Drop attributes and availability from TemplateEntity

* Use rest sensor for proof of concept

* Revert changes in SNMP sensor

* Don't set _attr_should_poll in mixin class

* Update requirements
2022-06-08 15:55:49 +02:00
epenet
64e7e62aa0
Add setup type hints [r] (#63472)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 16:37:47 +01:00
epenet
822ac203c3
Add sensor setup type hints [r] (#63312)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:08:34 +01:00
epenet
545b10a711
Add binary_sensor setup type hints [o-r] (#63270)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 11:35:02 +01:00
Sebastian Lövdahl
53f4a3d8bc
Use Platform constants all over the place 3/3 (#62954) 2021-12-28 21:24:27 +01:00
epenet
a19c95e4bd
Ensure service calls are typed [o-r] (#62920)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 13:10:17 +01:00