@callback
def qr_sensor_startup(event):
    'Update template on startup.'
    async_track_state_change(self.hass, self._entities, qr_state_listener)
Update template on startup.
@callback
def qr_sensor_startup(event):
    
    async_track_state_change(self.hass, self._entities, qr_state_listener)