custom_components/best_bottrop_garbage_collection/config_flow.py
async def validate_best_config(self) -> None:
        """Validate that the data is correct and can be retrieved
        Raises a ValueError if there the data cannot be retrieved
        """
        res_list: list[dict] = [""]

        if self._selected_street_id == "" or self._selected_number <= 0:
            raise ValueError

        #        session = async_get_clientsession(hass)
        try:
            res_list = await self._bgc.get_dates_as_json(
                self._selected_street_id, self._selected_number
            )
            if len(res_list) == 0:
                raise ValueError
        except:
            # There was some kind of problem to make the GET command (connectivity problems?)
            _LOGGER.exception(
                "Unexpected exception during configuration. Maybe wrong street number"
            )
            raise ValueError

        # If the result is empty, the API did not return anything due to invalid data
Validate that the data is correct and can be retrieved
        Raises a ValueError if there the data cannot be retrieved
        
Validate that the data is correct and can be retrieved
Raises a ValueError if there the data cannot be retrieved
Validate that the data is correct and can be retrieved Raises a ValueError if there the data cannot be retrieved
async def validate_best_config(self) -> None:
        res_list: list[dict] = [""]
        if self._selected_street_id == "" or self._selected_number <= 0:
            raise ValueError
        try:
            res_list = await self._bgc.get_dates_as_json(
                self._selected_street_id, self._selected_number
            )
            if len(res_list) == 0:
                raise ValueError
        except:
            _LOGGER.exception(
                "Unexpected exception during configuration. Maybe wrong street number"
            )
            raise ValueError
async def validate_best_config ( self ) -> None : res_list : list [ dict ] = [ "" ] if self . _selected_street_id == "" or self . _selected_number <= 0 : raise ValueError try : res_list = await self . _bgc . get_dates_as_json ( self . _selected_street_id , self . _selected_number ) if len ( res_list ) == 0 : raise ValueError except : _LOGGER . exception ( "Unexpected exception during configuration. Maybe wrong street number" ) raise ValueError
Validate that the data is correct and can be retrieved
Raises a ValueError if there the data cannot be retrieved
Validate that the data is correct and can be retrieved Raises a ValueError if there the data cannot be retrieved
"""Validate that the data is correct and can be retrieved
        Raises a ValueError if there the data cannot be retrieved
        """ #        session = async_get_clientsession(hass) # There was some kind of problem to make the GET command (connectivity problems?) # If the result is empty, the API did not return anything due to invalid data
self