* Fix loopenergy callback updating HA before the object is initialised. * Change to use async_added_to_hass.