Marc Mueller
e5f2046b19
Update mypy-dev to 1.12.0a2 ( #122613 )
2024-07-25 21:48:10 +02:00
Rami Mosleh
e1a6ac59e1
Move transmission services registration to async_setup ( #119593 )
...
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-06-21 12:58:33 +02:00
Rami Mosleh
e065c70969
Store transmission coordinator in runtime_data ( #119502 )
...
store transmission coordinator in runtime_data
2024-06-12 15:38:35 +02:00
Marc Mueller
dbb27755a4
Update mypy-dev to 1.11.0a5 ( #118519 )
2024-06-02 15:28:24 +02:00
Sid
6587ee20db
Enable Ruff TRY300 ( #114437 )
...
* Enable Ruff TRY300
* Update validation.py
* Address review comments
2024-03-30 10:37:59 +01:00
Ingmar Delsink
67a14d0463
Add transmission-integration path and protocol ( #104334 )
...
This updates the config_flow migration from v1.1 to v1.2
including migration tests
2024-03-21 11:05:36 +01:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
Rami Mosleh
61a1245a84
Code cleanup for transmission integration ( #103078 )
2023-10-31 08:49:03 +01:00
Rami Mosleh
a2bc2bf8a0
Remove name from Transmission config flow ( #102216 )
...
* Remove name key from Transmission
* Remove name variable completely
* remove name error from strings
* Change entry title to default name
2023-10-23 09:21:15 +02:00
Rami Mosleh
536ad57bf4
Use DataUpdate coordinator for Transmission ( #99209 )
...
* Switch integration to DataUpdate Coordinator
* add coordinator to .coveragerc
* Migrate TransmissionData into DUC
* update coveragerc
* Applu suggestions
* remove CONFIG_SCHEMA
2023-10-12 20:58:22 +02:00
Rami Mosleh
1d403a961f
Reorganize Transmission entry setup ( #99195 )
...
* simplify integration setup
* Update transmission entry setup to avoid None attributes
* keep api property in TransmissionData
* Apply suggestion
* Add __init__.py tp .coveragerc
2023-08-28 13:13:35 +02:00
Rami Mosleh
8edae37082
Add more type hints to Transmission ( #99190 )
...
* More type hints of transmssion
* More type hints
2023-08-28 11:20:18 +02:00
Rami Mosleh
2dd6b26fbc
Add type hints to transmission ( #99117 )
...
* Add type hints
* Apply suggestions
2023-08-27 12:43:30 +02:00
avee87
a5b91cb7e3
Fix invalid unique id for Transmission entities ( #84664 )
...
* Update unique id for Transmission entities
* Moved migration to a separate function
* Hopefully fixed coverage
* Extracted dictionary to constant
* review comments
* more comments
* revert accidental name change
* more review comments
* more review comments
* use lists instead of incorrect tuple syntax
2023-06-28 10:45:13 +02:00
DDanii
9ce062411d
Fix transmission error handling ( #91548 )
...
* transmission error handle fix
* added unexpected case tests
2023-05-05 08:42:51 +02:00
epenet
cdc01fce4c
Improve type hints in transmission ( #87171 )
2023-02-02 16:32:51 -05:00
Rami Mosleh
099a653bed
Remove name key from transimssion services ( #83974 )
2022-12-19 13:38:54 +01:00
Rami Mosleh
c0a7934828
Move transmission to an updated library ( #83932 )
...
fixes undefined
2022-12-14 16:36:37 +01:00
Rami Mosleh
06773efcbd
Deprecate name key in Transmission
services ( #78577 )
...
* Use entry_id instead of name in Transmission services
* fix return type for _get_client
* address comments
* combine conditions
2022-10-30 12:00:47 +01:00
J. Nick Koston
cd03c49fc2
Wait for config entry platform forwards ( #73806 )
2022-07-09 17:27:42 +02:00
Rami Mosleh
81e3ed790d
Add re-authentication for transmission
( #73124 )
...
* Add reauth flow to transmission
* fix async_setup
* add strings
* fix test coverage
2022-06-20 16:09:58 +02:00
Rami Mosleh
74e2d5c5c3
Remove deprecated YAML for transmission
( #72832 )
2022-06-01 17:25:49 +02:00
epenet
a63e5c7ded
Add type hints for config entry update listeners ( #65412 )
2022-02-02 03:36:04 -06:00
epenet
18056f3a8a
Add init type hints [t-u] ( #63194 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-01 22:06:11 -08:00
epenet
92ace6c2e8
Ensure service calls are typed [s-u] ( #62922 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 14:23:42 +01:00
Marc Mueller
b79b35abb5
Use platform enum (7) [T-Z] ( #60948 )
...
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-04 14:10:01 +01:00
Jim Shank
563eba7684
Clean up transmission empty containers evaluation ( #59304 )
2021-11-08 01:06:56 +01:00
Jim Shank
fa9ac71c3a
Check for torrents in queue before calling the api stop_torrent() ( #53895 )
...
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
2021-08-03 18:26:21 +02:00
Franck Nijhof
8d551e3f7b
Deprecate Transmission YAML configuration ( #50648 )
2021-05-15 13:25:00 +02:00
J. Nick Koston
4b74c57285
Reduce config entry setup/unload boilerplate T-U ( #49786 )
2021-04-27 22:19:57 +02:00
Marc Mueller
4cb7718192
Update typing 16 ( #48087 )
2021-03-18 22:58:19 +01:00
Franck Nijhof
dd8d4471ec
Postponed evaluation of annotations for integrations ( #46455 )
2021-02-12 18:54:00 +01:00
J.P. Hutchins
67ab86443e
Revert transmission to check torrent lists by name rather than object ( #46190 )
2021-02-10 20:53:31 +01:00
Julien Roy
94417e3e14
Add start torrent and stop torrent service for transmission integration ( #43920 )
2021-01-13 17:44:57 +01:00
J.P. Hutchins
793adb7f40
Add torrent id to Transmission events ( #44187 )
...
* Fire event after object update; clarify code across related methods
* Change var to torrent, clarity
* Add typehints, _ prefix private attributes
2021-01-08 07:53:47 -08:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Gleb Sinyavskiy
4a374f0378
Limit and sort transmission torrents_info attribute ( #35411 )
2020-06-28 13:56:54 +02:00
J.P. Hutchins
544094af21
Suppress error for start_torrents toggle ( #35799 )
2020-06-02 18:13:15 -07:00
Gleb Sinyavskiy
9062d6e5e6
Improve the transmission integration ( #34223 )
...
* Update state after adding a new torrent
* Use cached torrents list in check_started_torrent_info
* Add torrent_info to all sensors
* Add torrent_info for active torrents
* Fix typo
* Update codeowners
* Do not set eta if it's unknown
* Fix codeowners
* Extract TransmissionSpeedSensor
* Extract TransmissionStatusSensor
* Extract TransmissionTorrentsSensor
* Refactor device_state_attributes() and update()
* Remove unused methods
* Use async_on_remove
* Fix sensor update
* Add transmission.remove_torrent service
* Add transmission_removed_torrent event
* Fix naming
* Fix typo in services.yaml
2020-04-20 15:07:26 +02:00
Paulus Schoutsen
d4615fd432
Freeze config entry data ( #32615 )
...
* Freeze config entry data
* Fix mutating entry.data
* Fix config entry options tests
2020-03-09 14:07:50 -07:00
Bas Nijholt
de915e1bf0
Sort imports according to PEP8 for components starting with "T" ( #29778 )
2019-12-09 14:41:48 +01:00
Rami Mosleh
a5960830d7
Add host field to add_torrent service ( #28653 )
...
* Add host field to add_torrent service
* Code cleanup
* use name instead of host for service
* update add_torrent
2019-11-26 09:22:12 -08:00
J.P. Hutchins
54342d2a4e
Add transmission info about torrents that is accessible with templating ( #27111 )
...
* Add information about current downloads.
* Cleanup: add "Torrent Info" state attribute
* Add username to codeowners
* Rename state_attributes - device_state_attributes.
* Fix snakecase keys, use f-strings, remove redundant method.
* Access started_torrent_dict directly
* Add return None condition
* Remove redundancy.
* Add missing comma in codeowners list.
* Add missing @ to username.
* Update CODEOWNERS with script.hassfest.
* Remove transmission_downloading, give started_torrents the info.
* Confirm changes.
* Actually approve changes.
* Resolve conflicts.
* Remove leftovers from old torrent_info sensor.
* Remove get_started_torrent_info method.
Old method to display boolean for the removed torrent_info sensor.
2019-10-28 10:20:59 +01:00
Rami Mosleh
7cb6607b1f
Allow multiple Transmission clients and add unique_id to entities ( #28136 )
...
* Allow multiple clients + improvements
* remove commented code
* fixed test_init.py
2019-10-23 13:09:11 -07:00
Rami Mosleh
82b77c2d29
Add config flow to transmission ( #26434 )
...
* Add config flow to transmission
* Reworked code to add all sensors and switches
* applied fixes
* final touches
* Add tests
* fixed tests
* fix get_api errors and entities availabilty update
* update config_flows.py
* fix pylint error
* update .coveragerc
* add codeowner
* add test_options
* fixed test_options
2019-09-26 11:14:57 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Pierre Ståhl
797196dce9
Add add_torrent service to Transmission ( #25144 )
...
* Add add_torrent service to Transmission
* Fix services.yaml format
* Verify that torrent is whitelisted
* Add logging if adding failed
* Change warn to warning
2019-07-21 22:31:11 +02:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01:00
MatteGary
faf7ae29b1
Fix init of TransmissionData ( #20817 )
...
* Fix init of TransmissionData
Fix in order to avoid null object on first update of Turtle Mode Switch
* Using async functionality
* Various fix
* HoundBot fix
* Removed some async calls
* Fix compilation Error
* Fix
* PEP fix
2019-02-08 18:15:14 +01:00