custom_components/yahoofinance/sensor.py
async def _async_update_data(self):
        """Fetch the latest data from the source."""
        try:
            await self.update()
        except () as error:
            raise UpdateFailed(error)
        return self.data
Fetch the latest data from the source.
Fetch the latest data from the source.
Fetch the latest data from the source .
async def _async_update_data(self):
        try:
            await self.update()
        except () as error:
            raise UpdateFailed(error)
        return self.data
async def _async_update_data ( self ) : try : await self . update ( ) except ( ) as error : raise UpdateFailed ( error ) return self . data
Fetch the latest data from the source.
Fetch the latest data from the source .
"""Fetch the latest data from the source."""
self