As described in the Issues this update introduces code to deal with any "unavailable" rest platform get sensor by simply preserving the previous state and attributes of the template sensor data.
Updates as follows:
- added some error checking to deal with daily energy total errors when the data get is 'unavailable' or 'unknown'
- removed "force_update: true" - where the data get may be 'unavailable'
- removed "state_class: measurement" and "device_class: energy" for rest platform sensors (not applicable)