comparison sat/plugins/plugin_misc_identity.py @ 3262:aa71f1d40300

plugin identity: fixed update when cached data is None
author Goffi <goffi@goffi.org>
date Mon, 20 Apr 2020 14:51:58 +0200
parents 704dada41df0
children cf07641b764d
comparison
equal deleted inserted replaced
3261:a9e8e925ad99 3262:aa71f1d40300
359 if cached_data is None: 359 if cached_data is None:
360 log.debug( 360 log.debug(
361 f"{metadata_name} for {entity} is already disabled, nothing to " 361 f"{metadata_name} for {entity} is already disabled, nothing to "
362 f"do") 362 f"do")
363 return 363 return
364 elif cached_data is None:
365 pass
364 elif not update_is_new_data(client, entity, cached_data, data): 366 elif not update_is_new_data(client, entity, cached_data, data):
365 log.debug( 367 log.debug(
366 f"{metadata_name} for {entity} is already in cache, nothing to " 368 f"{metadata_name} for {entity} is already in cache, nothing to "
367 f"do") 369 f"do")
368 return 370 return