in gg_group_setup/mock_device.py [0:0]
def get_pub_topic(shadow):
if 'state' in shadow is False or \
'reported' in shadow['state'] is False or \
'pub_topic' in shadow['state']['reported'] is False:
return '/telemetry'
return shadow['state']['reported']['pub_topic']