Add async_get_options_flow type hints (n-z) (#73431)

This commit is contained in:
epenet 2022-06-13 13:30:41 +02:00 committed by GitHub
parent b589700651
commit 42ed0fd47b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 106 additions and 35 deletions

View file

@ -1,4 +1,6 @@
"""Config flow for Tado integration."""
from __future__ import annotations
import logging
from PyTado.interface import Tado
@ -112,7 +114,9 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
@staticmethod
@callback
def async_get_options_flow(config_entry):
def async_get_options_flow(
config_entry: config_entries.ConfigEntry,
) -> OptionsFlowHandler:
"""Get the options flow for this handler."""
return OptionsFlowHandler(config_entry)