Maintain Appdaemon sensor state on reboot

I’ve created a script in AppDaemon for reading my warmth-unit once per day and I put the result in a sensor (self.set_state) which works amazingsly well, the sensor is automatically created. But is it expected behavior that state of this sensor is not maintained through a restart?

I mostly use MQTT (with retain flag) for stuff like that. Convert is to a MQTT sensor and let AppDaemon update it’s state, that way you are sure it will keep state after reboots.