def _create_uuid(hass, filename=UPDATER_UUID_FILE):
 with open(hass.config.path(filename), 'w') as fptr:
  _uuid = uuid.uuid4().hex
  fptr.write(json.dumps({'uuid': _uuid}))
  return _uuid

def _create_uuid ( hass , filename = UPDATER_UUID_FILE ) : with open ( hass . config . path ( filename ) , 'w' ) as fptr : _uuid = uuid . uuid4 ( ) . hex fptr . write ( json . dumps ( { 'uuid' : _uuid } ) ) return _uuid
create uuid and save it in a file .