custom_components/nea_sg_weather/nea.py
async def async_init(self):
        """Async function to await in main loop"""
        await self.direction.async_init()
        await self.speed.async_init()
        self.response = {
            "wind_speed": self.speed.response,
            "wind_direction": self.direction.response,
        }
        self.wind_status = self.calc_wind_status(
            self.direction.data,
            self.speed.data,
        )
        self.wind_speed_avg = self.wind_status["agg_wind_speed"]
        self.wind_dir_avg = self.wind_status["agg_wind_direction"]
Async function to await in main loop
Async function to await in main loop
Async function to await in main loop
async def async_init(self):
        await self.direction.async_init()
        await self.speed.async_init()
        self.response = {
            "wind_speed": self.speed.response,
            "wind_direction": self.direction.response,
        }
        self.wind_status = self.calc_wind_status(
            self.direction.data,
            self.speed.data,
        )
        self.wind_speed_avg = self.wind_status["agg_wind_speed"]
        self.wind_dir_avg = self.wind_status["agg_wind_direction"]
async def async_init ( self ) : await self . direction . async_init ( ) await self . speed . async_init ( ) self . response = { "wind_speed" : self . speed . response , "wind_direction" : self . direction . response , } self . wind_status = self . calc_wind_status ( self . direction . data , self . speed . data , ) self . wind_speed_avg = self . wind_status [ "agg_wind_speed" ] self . wind_dir_avg = self . wind_status [ "agg_wind_direction" ]
Async function to await in main loop
Async function to await in main loop
"""Async function to await in main loop"""
self