removes type in config lfow
FlowResultDict is only available in dev
This commit is contained in:
		@@ -10,7 +10,6 @@ import voluptuous as vol
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
from homeassistant import config_entries
 | 
					from homeassistant import config_entries
 | 
				
			||||||
from homeassistant.const import CONF_CODE, CONF_EMAIL, CONF_TOKEN
 | 
					from homeassistant.const import CONF_CODE, CONF_EMAIL, CONF_TOKEN
 | 
				
			||||||
from homeassistant.data_entry_flow import FlowResultDict
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
from . import api
 | 
					from . import api
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -62,8 +61,8 @@ class VorwerkConfigFlow(config_entries.ConfigFlow, domain=VORWERK_DOMAIN):
 | 
				
			|||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    async def async_step_code(
 | 
					    async def async_step_code(
 | 
				
			||||||
        self, user_input: dict[str, Any] = None
 | 
					        self, user_input = None
 | 
				
			||||||
    ) -> FlowResultDict:
 | 
					    ):
 | 
				
			||||||
        """Step when user enters OTP Code from email."""
 | 
					        """Step when user enters OTP Code from email."""
 | 
				
			||||||
        assert self._email is not None  # typing
 | 
					        assert self._email is not None  # typing
 | 
				
			||||||
        errors = {}
 | 
					        errors = {}
 | 
				
			||||||
@@ -99,7 +98,7 @@ class VorwerkConfigFlow(config_entries.ConfigFlow, domain=VORWERK_DOMAIN):
 | 
				
			|||||||
            errors=errors,
 | 
					            errors=errors,
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    async def async_step_import(self, user_input: dict[str, Any]) -> FlowResultDict:
 | 
					    async def async_step_import(self, user_input):
 | 
				
			||||||
        """Import a config flow from configuration."""
 | 
					        """Import a config flow from configuration."""
 | 
				
			||||||
        unique_id = "from configuration"
 | 
					        unique_id = "from configuration"
 | 
				
			||||||
        data = {VORWERK_ROBOTS: user_input}
 | 
					        data = {VORWERK_ROBOTS: user_input}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user