async def async_added_to_hass(self):
    'Connect to dispatcher listening for entity data notifications.'
    self.async_on_remove(self._weather_coordinator.async_add_listener(self.async_write_ha_state))
Connect to dispatcher listening for entity data notifications.
async def async_added_to_hass(self):
    
    self.async_on_remove(self._weather_coordinator.async_add_listener(self.async_write_ha_state))