Improve type hints in transmission (#87171)

This commit is contained in:
epenet 2023-02-02 22:32:51 +01:00 committed by GitHub
parent 111a77893e
commit cdc01fce4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,7 +311,9 @@ class TransmissionClient:
class TransmissionData:
"""Get the latest data and update the states."""
def __init__(self, hass, config, api: transmission_rpc.Client):
def __init__(
self, hass: HomeAssistant, config: ConfigEntry, api: transmission_rpc.Client
) -> None:
"""Initialize the Transmission RPC API."""
self.hass = hass
self.config = config