custom_components/best_bottrop_garbage_collection/__init__.py
async def _async_update_data(self) -> dict:
        """Fetch data from API endpoint.

        This is the place to pre-process the data to lookup tables
        so entities can quickly look up their data.
        """
        # create a list with responses

        # streetid : JSON-Object
        ret_dict: dict = {}

        for entry in self.hass.config_entries.async_entries(DOMAIN):
            _LOGGER.debug(
                "Request for data fetch for street_id %s", entry.data["street_id"]
            )

            # ClientError Exceptions already caught by HA
            async with async_timeout.timeout(10):
                resp = await BESTBottropGarbageCollectionDates().get_dates_as_json(
                    entry.data["street_id"], entry.data["number"]
                )
            resp_list = list(resp)
            # the data is structured as a dict. The key is the street_id. That data to that key is the JSON-dict.
            ret_dict[entry.data["street_id"]] = resp_list

        return ret_dict
Fetch data from API endpoint.

        This is the place to pre-process the data to lookup tables
        so entities can quickly look up their data.
        
Fetch data from API endpoint.
This is the place to pre-process the data to lookup tables
so entities can quickly look up their data.
Fetch data from API endpoint . This is the place to pre - process the data to lookup tables so entities can quickly look up their data .
async def _async_update_data(self) -> dict:
        ret_dict: dict = {}
        for entry in self.hass.config_entries.async_entries(DOMAIN):
            _LOGGER.debug(
                "Request for data fetch for street_id %s", entry.data["street_id"]
            )
            async with async_timeout.timeout(10):
                resp = await BESTBottropGarbageCollectionDates().get_dates_as_json(
                    entry.data["street_id"], entry.data["number"]
                )
            resp_list = list(resp)
            ret_dict[entry.data["street_id"]] = resp_list
        return ret_dict
async def _async_update_data ( self ) -> dict : ret_dict : dict = { } for entry in self . hass . config_entries . async_entries ( DOMAIN ) : _LOGGER . debug ( "Request for data fetch for street_id %s" , entry . data [ "street_id" ] ) async with async_timeout . timeout ( 10 ) : resp = await BESTBottropGarbageCollectionDates ( ) . get_dates_as_json ( entry . data [ "street_id" ] , entry . data [ "number" ] ) resp_list = list ( resp ) ret_dict [ entry . data [ "street_id" ] ] = resp_list return ret_dict
Fetch data from API endpoint.
Fetch data from API endpoint .
"""Fetch data from API endpoint.

        This is the place to pre-process the data to lookup tables
        so entities can quickly look up their data.
        """ # create a list with responses # streetid : JSON-Object # ClientError Exceptions already caught by HA # the data is structured as a dict. The key is the street_id. That data to that key is the JSON-dict.
self