How to save 'not changed' state of entity

The sensor is part of a custom component:
Writing a component for Luxtronik Heatpumps.
Every 60 seconds all data are collected from the heatpump.